1 | <?php |
||
19 | class DocumentIterator extends AbstractResultsIterator |
||
20 | { |
||
21 | /** |
||
22 | * Returns aggregations. |
||
23 | * |
||
24 | * @return array |
||
25 | */ |
||
26 | public function getAggregations() |
||
36 | |||
37 | /** |
||
38 | * Get a specific aggregation by name. It fetches from the top level only. |
||
39 | * |
||
40 | * @param string $name |
||
41 | * |
||
42 | * @return AggregationValue|null |
||
43 | */ |
||
44 | public function getAggregation($name) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | protected function convertDocument(array $document) |
||
61 | } |
||
62 |
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.