1 | <?php |
||
40 | class NestedKeyIterator extends \RecursiveIteratorIterator |
||
41 | { |
||
42 | private $stack = array(); |
||
43 | private $keySeparator; |
||
44 | |||
45 | /** |
||
46 | * @param \Traversable $iterator |
||
47 | * @param string $separator |
||
48 | * @param int $mode |
||
49 | * @param int $flags |
||
50 | */ |
||
51 | public function __construct(\Traversable $iterator, $separator = '.', $mode = \RecursiveIteratorIterator::LEAVES_ONLY, $flags = 0) |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function callGetChildren() |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function endChildren() |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function key() |
||
85 | } |
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.