1 | <?php |
||
21 | class Link extends Text |
||
22 | 1 | { |
|
23 | /** |
||
24 | * @param mixed $value |
||
25 | * @return \Nette\Utils\Html |
||
26 | */ |
||
27 | protected function formatValue($value) |
||
31 | |||
32 | /** |
||
33 | * @param string $value |
||
34 | 1 | * @return string |
|
35 | */ |
||
36 | protected function formatHref($value) |
||
44 | |||
45 | /** |
||
46 | * @param string $value |
||
47 | * @return string |
||
48 | */ |
||
49 | protected function formatText($value) |
||
53 | |||
54 | /** |
||
55 | * @param mixed $value |
||
56 | * @return \Nette\Utils\Html |
||
57 | */ |
||
58 | protected function getAnchor($value) |
||
80 | } |
||
81 |
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.