ReflectionClass
PHP Manual

ReflectionClass::getTraits

(PHP >= 5.4.0)

ReflectionClass::getTraitsReturns an array of traits used by this class

说明

public array ReflectionClass::getTraits ( void )

Warning

本函数还未编写文档,仅有参数列表。

参数

此函数没有参数。

返回值

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


ReflectionClass
PHP Manual