ReflectionClass::getTraits

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

public function getTraits(): darray<string, ReflectionClass>;

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

Returns

  • mixed - Returns an array with trait names in keys and instances of trait's ReflectionClass in values. Returns NULL in case of an error.