(PHP 8 >= 8.1.0)
ReflectionClass::isEnum — Returns whether this is an enum
Checks if a class is an enum.
Questa funzione non contiene parametri.
Returns true if this is an enum, false otherwise.
true
false