1 | <?php |
||
20 | class ClassReflection extends \ReflectionClass |
||
21 | { |
||
22 | /** |
||
23 | * @var DocCommentParser Holds an instance of the doc comment parser for this class |
||
24 | */ |
||
25 | protected $docCommentParser; |
||
26 | |||
27 | /** |
||
28 | * Replacement for the original getMethods() method which makes sure |
||
29 | * that \TYPO3\CMS\Extbase\Reflection\MethodReflection objects are returned instead of the |
||
30 | * original ReflectionMethod instances. |
||
31 | * |
||
32 | * @param int|NULL $filter A filter mask |
||
33 | * @return MethodReflection[] Method reflection objects of the methods in this class |
||
34 | */ |
||
35 | public function getMethods($filter = null) |
||
44 | |||
45 | /** |
||
46 | * Replacement for the original getMethod() method which makes sure |
||
47 | * that \TYPO3\CMS\Extbase\Reflection\MethodReflection objects are returned instead of the |
||
48 | * original ReflectionMethod instances. |
||
49 | * |
||
50 | * @param string $name |
||
51 | * @return MethodReflection Method reflection object of the named method |
||
52 | */ |
||
53 | public function getMethod($name) |
||
61 | |||
62 | /** |
||
63 | * Replacement for the original getConstructor() method which makes sure |
||
64 | * that \TYPO3\CMS\Extbase\Reflection\MethodReflection objects are returned instead of the |
||
65 | * original ReflectionMethod instances. |
||
66 | * |
||
67 | * @return MethodReflection Method reflection object of the constructor method |
||
68 | */ |
||
69 | public function getConstructor() |
||
77 | |||
78 | /** |
||
79 | * Replacement for the original getProperties() method which makes sure |
||
80 | * that \TYPO3\CMS\Extbase\Reflection\PropertyReflection objects are returned instead of the |
||
81 | * original ReflectionProperty instances. |
||
82 | * |
||
83 | * @param int|NULL $filter A filter mask |
||
84 | * @return PropertyReflection[] Property reflection objects of the properties in this class |
||
85 | */ |
||
86 | public function getProperties($filter = null) |
||
95 | |||
96 | /** |
||
97 | * Replacement for the original getProperty() method which makes sure |
||
98 | * that a \TYPO3\CMS\Extbase\Reflection\PropertyReflection object is returned instead of the |
||
99 | * original ReflectionProperty instance. |
||
100 | * |
||
101 | * @param string $name Name of the property |
||
102 | * @return PropertyReflection Property reflection object of the specified property in this class |
||
103 | */ |
||
104 | public function getProperty($name) |
||
108 | |||
109 | /** |
||
110 | * Replacement for the original getInterfaces() method which makes sure |
||
111 | * that \TYPO3\CMS\Extbase\Reflection\ClassReflection objects are returned instead of the |
||
112 | * original ReflectionClass instances. |
||
113 | * |
||
114 | * @return ClassReflection[] Class reflection objects of the properties in this class |
||
115 | */ |
||
116 | public function getInterfaces() |
||
125 | |||
126 | /** |
||
127 | * Replacement for the original getParentClass() method which makes sure |
||
128 | * that a \TYPO3\CMS\Extbase\Reflection\ClassReflection object is returned instead of the |
||
129 | * original ReflectionClass instance. |
||
130 | * |
||
131 | * @return ClassReflection Reflection of the parent class - if any |
||
132 | */ |
||
133 | public function getParentClass() |
||
138 | |||
139 | /** |
||
140 | * Checks if the doc comment of this method is tagged with |
||
141 | * the specified tag |
||
142 | * |
||
143 | * @param string $tag Tag name to check for |
||
144 | * @return bool TRUE if such a tag has been defined, otherwise FALSE |
||
145 | */ |
||
146 | public function isTaggedWith($tag) |
||
151 | |||
152 | /** |
||
153 | * Returns an array of tags and their values |
||
154 | * |
||
155 | * @return array Tags and values |
||
156 | */ |
||
157 | public function getTagsValues() |
||
161 | |||
162 | /** |
||
163 | * Returns the values of the specified tag |
||
164 | * |
||
165 | * @param string $tag |
||
166 | * @return array Values of the given tag |
||
167 | */ |
||
168 | public function getTagValues($tag) |
||
172 | |||
173 | /** |
||
174 | * Returns an instance of the doc comment parser and |
||
175 | * runs the parse() method. |
||
176 | * |
||
177 | * @return DocCommentParser |
||
178 | */ |
||
179 | protected function getDocCommentParser() |
||
187 | } |
||
188 |