| 1 | <?php |
||
| 13 | class WeekViewHelper extends AbstractLinkViewHelper |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Init arguments. |
||
| 17 | */ |
||
| 18 | public function initializeArguments() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Render the link to the given day. |
||
| 27 | * |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public function render() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param \DateTime $date |
||
| 50 | * @return int |
||
| 51 | */ |
||
| 52 | protected function getCwYear(\DateTime $date) |
||
| 64 | } |
||
| 65 |
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 theSoncalls the wrong method in the parent class.