class ReflectionUtils

Just another place to put static functions.

..

Methods

static array
getCodeDocs(Reflector|ReflectionClass $reflection, string $type = NULL)

No description

static array
parseDocBlock(string $comment)

No description

static array
getTraits(object|string $class)

List all traits used by a class and its parents.

Details

at line 42
static array getCodeDocs(Reflector|ReflectionClass $reflection, string $type = NULL)

Parameters

Reflector|ReflectionClass $reflection
string $type If we are not reflecting the class itself, specify "Method", "Property", etc.

Return Value

array

at line 80
static array parseDocBlock(string $comment)

Parameters

string $comment

Return Value

array

at line 127
static array getTraits(object|string $class)

List all traits used by a class and its parents.

Parameters

object|string $class

Return Value

array