ReflectionClassConstant::getType

Gets a class constant's type

&reftitle.description; public ``ReflectionType``null```ReflectionClassConstant::getType`

Gets the associated type of a class constant.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Returns a `ReflectionType` object if a constant type is specified, &null; otherwise.

&reftitle.seealso;

- `ReflectionClassConstant::hasType`
- `ReflectionType`