ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
# Class Phalcon\\Annotations\\Reflection # Class **Phalcon\\Annotations\\Reflection** Allows to manipulate the annotations reflection in an OO manner ``` <pre class="calibre14">``` <?php 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(); ``` ``` ### Methods public **\_\_construct** (\[*array* $reflectionData\]) Phalcon\\Annotations\\Reflection constructor public **getClassAnnotations** () Returns the annotations found in the class docblock public **getMethodsAnnotations** () Returns the annotations found in the methods' docblocks public **getPropertiesAnnotations** () Returns the annotations found in the properties' docblocks public *array***getReflectionData** () Returns the raw parsing intermediate definitions used to construct the reflection public static *array data*\*\*\_\_set\_state\*\* (*unknown* $data) Restores the state of a Phalcon\\Annotations\\Reflection variable export | - [索引](# "总目录") - [下一页](# "Class Phalcon\Assets\Collection") | - [上一页](# "Class Phalcon\Annotations\Reader") | - [API Indice](#) »