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