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