ReflectionClassConstant::hasType

(PHP 8 >= 8.3.0)

ReflectionClassConstant::hasTypeVerifica si una constante de clase tiene un tipo

Descripción

public ReflectionClassConstant::hasType(): bool

Verifica si la constante de clase tiene un tipo asociado.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

true si un tipo está especificado, de lo contrario false.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top