1 | <?php |
||
11 | class XmlNode extends XmlElement |
||
12 | { |
||
13 | /** |
||
14 | * @var XmlElement[] |
||
15 | */ |
||
16 | private $elements = []; |
||
17 | /** |
||
18 | * @var bool |
||
19 | */ |
||
20 | private $childPrefixInheritance = false; |
||
21 | |||
22 | /** |
||
23 | * @param string $prefix |
||
24 | */ |
||
25 | 12 | public function setPrefix(string $prefix) |
|
33 | |||
34 | /** |
||
35 | * @param XmlElement $element |
||
36 | */ |
||
37 | 12 | public function appendElement(XmlElement $element) |
|
42 | |||
43 | /** |
||
44 | * @param XmlElement $element |
||
45 | */ |
||
46 | 12 | private function syncPrefix(XmlElement $element) |
|
52 | |||
53 | /** |
||
54 | * @return XmlElement[]|XmlNode[] |
||
55 | */ |
||
56 | 12 | public function getElements(): array |
|
60 | |||
61 | /** |
||
62 | * @return bool |
||
63 | */ |
||
64 | 2 | public function hasElements(): bool |
|
68 | |||
69 | /** |
||
70 | * @param VisitorInterface $visitor |
||
71 | */ |
||
72 | 10 | public function accept(VisitorInterface $visitor) |
|
76 | |||
77 | /** |
||
78 | * @return bool |
||
79 | */ |
||
80 | final public function isChildPrefixInheritanceEnabled(): bool |
||
84 | |||
85 | /** |
||
86 | * |
||
87 | */ |
||
88 | final public function enableChildPrefixInheritance() |
||
92 | |||
93 | /** |
||
94 | * |
||
95 | */ |
||
96 | final public function disableChildPrefixInheritance() |
||
100 | } |