Класс Phalcon\Annotations\Reflection
Позволяет манипулировать отражением аннотаций в объектно-ориентированном стиле
//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();
Методы
public __construct ([array $reflectionData])
Конструктор Phalcon\Annotations\Reflection
public Phalcon\Annotations\Collection getClassAnnotations ()
Возвращает аннотации, найденные в блоке документации класса
public Phalcon\Annotations\Collection [] getMethodsAnnotations ()
Возвращает аннотации, найденные в блоках документации методов
public Phalcon\Annotations\Collection [] getPropertiesAnnotations ()
Возвращает аннотации, найденные в блоках документации свойств
public array getReflectionData ()
Возвращает исходные промежуточные определения парсинга, используемые для построения отражения
public static array $data __set_state (unknown $data)
Восстанавливает состояние переменной Phalcon\Annotations\Reflection после экспорта
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Annotations_Reflection.html