1 | <?php |
||
7 | abstract class AbstractSimpleHtmlDomNode extends \ArrayObject |
||
8 | { |
||
9 | /** @noinspection MagicMethodsValidityInspection */ |
||
10 | |||
11 | /** |
||
12 | * @param string $name |
||
13 | * |
||
14 | * @return array|null |
||
15 | */ |
||
16 | 4 | public function __get($name) |
|
39 | |||
40 | /** |
||
41 | * @param string $selector |
||
42 | * @param int|null $idx |
||
43 | * |
||
44 | * @return SimpleHtmlDomNodeInterface|SimpleHtmlDomNodeInterface[]|null |
||
45 | */ |
||
46 | public function __invoke($selector, $idx = null) |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 3 | public function __toString() |
|
65 | |||
66 | abstract public function find(string $selector, $idx = null); |
||
67 | } |
||
68 |