ReflectionClass::isTrait

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

Description

public function isTrait(): bool

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

Returns whether this is a trait.

Return Values

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