| 1 | <?php |
||
| 5 | class RecursiveIndexIterator extends \ArrayIterator implements \RecursiveIterator |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var IndexNode |
||
| 9 | */ |
||
| 10 | protected $indexNode; |
||
| 11 | |||
| 12 | public function __construct(IndexNode $indexNode) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | public function current() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | public function hasChildren() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function getChildren() |
||
| 42 | } |
||
| 43 |
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.