ReflectionClass::getTraitNames

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

public function getTraitNames(): varray<string>;

Warning: This function is currently not documented; only its argument list is available.

Returns

  • mixed - Returns an array with trait names in values. Returns NULL in case of an error.