Allows to manipulate the annotations reflection in an OO manner
use Phalcon\Annotations\Reader; use Phalcon\Annotations\Reflection; // Parse the annotations in a class $reader = new Reader(); $parsing = $reader->parse("MyComponent"); // Create the reflection $reflection = new Reflection($parsing); // Get the annotations in the class docblock $classAnnotations = $reflection->getClassAnnotations();
Phalcon\Annotations\Reflection constructor
Returns the annotations found in the class docblock
Returns the annotations found in the methods’ docblocks
Returns the annotations found in the properties’ docblocks
Returns the raw parsing intermediate definitions used to construct the reflection
Restores the state of a Phalcon\Annotations\Reflection variable export
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Annotations_Reflection.html