ReflectionClass::getTraits

( excerpt from http://php

Description

public function getTraits(): array<string, ReflectionClass>

net/manual/en/reflectionclass.gettraits.php )

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

Return Values

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