| 1 | <?php |
||
| 22 | class JobSelectPaginator extends Paginator |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var \Jobs\Repository\Job |
||
| 26 | */ |
||
| 27 | private $repository; |
||
| 28 | |||
| 29 | public function __construct($repository) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Set the search criteria. |
||
| 36 | * |
||
| 37 | * @param string $q |
||
| 38 | * |
||
| 39 | * @return self |
||
| 40 | */ |
||
| 41 | public function search($q) |
||
| 53 | } |
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.