| 1 | <?php |
||
| 8 | class ElasticsearchFormatter extends NormalizerFormatter |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | private $type; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $index; |
||
| 19 | |||
| 20 | public function __construct($index, $type) |
||
| 27 | |||
| 28 | public function format(array $record) |
||
| 38 | |||
| 39 | public function formatBatch(array $records) |
||
| 56 | } |
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.