ReflectionClassConstant::hasType
PHP Manual
PHP Manual»ReflectionClassConstant»ReflectionClassConstant::hasType

ReflectionClassConstant::hasType

(PHP 8 >= 8.3.0)

ReflectionClassConstant::hasTypeChecks if class constant has a type

Опис

public function ReflectionClassConstant::hasType(): bool

Checks if the class constant has a type associated with it.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

true if a type is specified, false otherwise.

Прогляньте також

To Top