Класс Phalcon\Annotations\Reflection
Позволяет управлять отражением аннотаций объектно-ориентированным способом
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();
Методы
public __construct ([array $reflectionData])
Конструктор Phalcon\Annotations\Reflection
public getClassAnnotations ()
Возвращает аннотации, найденные в блоке документации класса
public getMethodsAnnotations ()
Возвращает аннотации, найденные в блоках документации методов
public getPropertiesAnnotations ()
Возвращает аннотации, найденные в блоках документации свойств
public array getReflectionData ()
Возвращает исходные промежуточные определения, используемые для построения отражения
public static array data __set_state (mixed $data)
Восстанавливает состояние переменной Phalcon\Annotations\Reflection после экспорта
© 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