1 | <?php |
||
12 | class XmlNode extends XmlElement |
||
13 | { |
||
14 | /** |
||
15 | * @var Element[] |
||
16 | */ |
||
17 | private $elements = []; |
||
18 | |||
19 | /** |
||
20 | * @param string $prefix |
||
21 | */ |
||
22 | public function setPrefix(string $prefix) |
||
31 | |||
32 | 13 | /** |
|
33 | * @param Element $element |
||
34 | */ |
||
35 | public function appendElement(Element $element) |
||
40 | 13 | ||
41 | 13 | /** |
|
42 | * @return Element[]|XmlNode[] |
||
43 | */ |
||
44 | public function getElements(): array |
||
48 | 13 | ||
49 | 6 | /** |
|
50 | * @return bool |
||
51 | 13 | */ |
|
52 | public function hasElements(): bool |
||
56 | 13 | ||
57 | /** |
||
58 | 13 | * @param ElementVisitorInterface $visitor |
|
59 | */ |
||
60 | public function accept(ElementVisitorInterface $visitor) |
||
64 | } |