class PhpParser (View source)

Parses a file for namespaces/use/class declarations.

Methods

array
parseClass(ReflectionClass $class)

Parses a class.

Details

array parseClass(ReflectionClass $class)

Parses a class.

Parameters

ReflectionClass $class A ReflectionClass object.

Return Value

array A list with use statements in the form (Alias => FQN).