data ) ) { $this->data = [ 'value' => $this->getDataForChildren() ]; } return $this->data; } public function getRenderData() { return [ 'type' => $this->getType(), 'data' => [ 'value' => $this->getRenderDataForChildren() ], ]; } public function isEmpty() { /** @var Node $child */ foreach ( $this->getChildNodes() as $child ) { if ( !$child->isEmpty() ) { return false; } } return true; } public function getSource() { return $this->getSourceForChildren(); } }