(PHP 5 >= 5.4.0, PHP 7, PHP 8)
ReflectionClass::isTrait — Returns whether this is a trait
Check whether this ReflectionClass refers to a trait.
Questa funzione non contiene parametri.
Returns true if this is a trait, false otherwise.
true
false