Annotations\Reflection

Class Phalcon\Annotations\Reflection

Allows to manipulate the annotations reflection in an OO manner

//Parse the annotations in a class
 $reader = new \Phalcon\Annotations\Reader();
 $parsing = $reader->parse('MyComponent');

 //Create the reflection
 $reflection = new \Phalcon\Annotations\Reflection($parsing);

 //Get the annotations in the class docblock
 $classAnnotations = $reflection->getClassAnnotations();

Methods

public __construct ([array $reflectionData])

Phalcon\Annotations\Reflection constructor

public Phalcon\Annotations\Collection getClassAnnotations ()

Returns the annotations