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

ReflectionClassConstant::hasType

(PHP 8 >= 8.3.0)

ReflectionClassConstant::hasTypeChecks if class constant has a type

Açıklama

public function ReflectionClassConstant::hasType(): bool

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

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

true if a type is specified, false otherwise.

Ayrıca Bakınız

To Top