phpday 2027 - Call for Papers

ReflectionClassConstant::getType

(PHP 8 >= 8.3.0)

ReflectionClassConstant::getType — Gets a class constant's type

Beschreibung

public function ReflectionClassConstant::getType(): ?ReflectionType

Gets the associated type of a class constant.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

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

Siehe auch

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top