| 1 | <?php | ||
| 10 | class RowsOfFieldsWithMetadata extends RowsOfFields implements MetadataInterface, MetadataHolderInterface | ||
| 11 | { | ||
| 12 | use MetadataHolderTrait; | ||
| 13 | |||
| 14 | public function __constructor($data) | ||
| 18 | |||
| 19 | /** | ||
| 20 | * Restructure this data for output by converting it into a table | ||
| 21 | * transformation object. First, though, remove any metadata items. | ||
| 22 | * | ||
| 23 | * @param FormatterOptions $options Options that affect output formatting. | ||
| 24 | * @return Consolidation\OutputFormatters\Transformations\TableTransformation | ||
| 25 | */ | ||
| 26 | public function restructure(FormatterOptions $options) | ||
| 34 | |||
| 35 | public function getMetadata() | ||
| 39 | } | ||
| 40 | 
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.