ReflectionClass::isTrait

( excerpt from http://php.net/manual/en/reflectionclass.istrait.php )

public function isTrait(): bool;

Returns whether this is a trait.

Returns

  • bool - Returns TRUE if this is a trait, FALSE otherwise.