element = new \PSC\Library\Calc\Option\Type\Radio(); } public function parseXML(): PSCRadio { parent::parseXML(); if(isset($this->node->grenzen) && $this->node->grenzen->children()) { $edgeCollectionContainerParser = new EdgeCollectionContainer($this->node->grenzen); $this->element->setEdgesCollectionContainer($edgeCollectionContainerParser->parse()); } $this->parseModeNormal(); return $this->element; } private function parseModeNormal() { foreach ($this->node->opt as $opt) { $optParser = new Opt($opt); $this->element->addOption($optParser->parse()); } } }