| 1 | <?php |
||
| 13 | class Element extends Node |
||
| 14 | { |
||
| 15 | private $name_; |
||
| 16 | private $attributes_; |
||
| 17 | |||
| 18 | 18 | public function __construct(XMLReader $reader) |
|
| 24 | |||
| 25 | 1 | public function getXMLElementAround($innerXML = '') |
|
| 29 | |||
| 30 | public function getAttributes() |
||
| 34 | |||
| 35 | public function getAttribute(string $name, $default = null) |
||
| 39 | |||
| 40 | public function __toString() |
||
| 44 | |||
| 45 | 18 | private function initializeFrom(XMLReader $reader) |
|
| 59 | } |
||
| 60 |
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.