ReflectionClassConstant::hasType

Checks if class constant has a type

説明

public bool ReflectionClassConstant::hasType()

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

パラメータ

この関数にはパラメータはありません。

戻り値

true if a type is specified, false otherwise.

参考

  • ReflectionClassConstant::getType
  • ReflectionType