| 1 | <?php |
||
| 12 | abstract class OutputNode extends AbstractNode |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Array used to aggregate all nested node results in a form of tree. |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $result = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get resulted tree. |
||
| 23 | * |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | public function getResult(): array |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Destructing. |
||
| 33 | */ |
||
| 34 | public function __destruct() |
||
| 39 | } |