private function createSectionProperty(SectionMetadata $property, StructureInterface $structure = null) { $sectionProperty = new SectionProperty($property->getName(), ['title' => $property->title, 'info_text' => $property->description], $property->getColspan()); foreach ($property->getChildren() as $child) { $sectionProperty->addChild($this->createProperty($child, $structure)); } return $sectionProperty; }