| 1 | <?php |
||
| 12 | class XmlNode extends XmlElement |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Element[] |
||
| 16 | */ |
||
| 17 | private $elements = []; |
||
| 18 | |||
| 19 | public function setPrefix(string $prefix) |
||
| 28 | 4 | ||
| 29 | /** |
||
| 30 | 15 | * @param Element $element |
|
| 31 | */ |
||
| 32 | final public function appendElement(Element $element) |
||
| 37 | 15 | ||
| 38 | 15 | /** |
|
| 39 | 15 | * @return bool |
|
| 40 | */ |
||
| 41 | final public function hasElements(): bool |
||
| 45 | |||
| 46 | 15 | /** |
|
| 47 | * @return Element[] |
||
| 48 | */ |
||
| 49 | final public function getElements(): array |
||
| 53 | |||
| 54 | 2 | /** |
|
| 55 | * @param ElementVisitorInterface $visitor |
||
| 56 | */ |
||
| 57 | public function accept(ElementVisitorInterface $visitor) |
||
| 61 | } |