1 | <?php |
||
20 | class PropertyReflection extends \ReflectionProperty |
||
21 | { |
||
22 | /** |
||
23 | * @var DocCommentParser An instance of the doc comment parser |
||
24 | */ |
||
25 | protected $docCommentParser; |
||
26 | |||
27 | /** |
||
28 | * Checks if the doc comment of this property is tagged with |
||
29 | * the specified tag |
||
30 | * |
||
31 | * @param string $tag Tag name to check for |
||
32 | * @return bool TRUE if such a tag has been defined, otherwise FALSE |
||
33 | */ |
||
34 | public function isTaggedWith($tag) |
||
39 | |||
40 | /** |
||
41 | * Returns an array of tags and their values |
||
42 | * |
||
43 | * @return array Tags and values |
||
44 | */ |
||
45 | public function getTagsValues() |
||
49 | |||
50 | /** |
||
51 | * Returns the values of the specified tag |
||
52 | * |
||
53 | * @param string $tag |
||
54 | * @return array Values of the given tag |
||
55 | */ |
||
56 | public function getTagValues($tag) |
||
60 | |||
61 | /** |
||
62 | * Returns the value of the reflected property - even if it is protected. |
||
63 | * |
||
64 | * @param object $object Instance of the declaring class \TYPO3\CMS\Extbase\Reflection to read the value from |
||
65 | * @return mixed Value of the property |
||
66 | * @throws Exception |
||
67 | * @todo Maybe support private properties as well, as of PHP 5.3.0 we can do |
||
68 | */ |
||
69 | public function getValue($object = null) |
||
83 | |||
84 | /** |
||
85 | * Returns an instance of the doc comment parser and |
||
86 | * runs the parse() method. |
||
87 | * |
||
88 | * @return DocCommentParser |
||
89 | */ |
||
90 | protected function getDocCommentParser() |
||
98 | } |
||
99 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.