| 1 | <?php |
||
| 10 | class Dom implements Dom\NodeLocatorInterface |
||
| 11 | { |
||
| 12 | use Dom\LocatorAwareTrait; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var Dom\Document |
||
| 16 | */ |
||
| 17 | private $doc; |
||
| 18 | |||
| 19 | // TODO factory |
||
| 20 | public function __construct($code) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Return an element collection |
||
| 36 | * |
||
| 37 | * @param string|array $locator |
||
| 38 | * @return Dom\NodeList |
||
| 39 | */ |
||
| 40 | public function locate($locator) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function __toString() |
||
| 54 | } |
||
| 55 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.