src/Sulu/Component/Content/Compat/Structure.php
protected function addChild(PropertyInterface $property)
    {
        if ($property instanceof SectionPropertyInterface) {
            foreach ($property->getChildProperties() as $childProperty) {
                $this->addPropertyTags($childProperty);
            }
        } else {
            $this->addPropertyTags($property);
        }

        $this->properties[$property->getName()] = $property;
    }
protected function addChild(PropertyInterface $property)
    {
        if ($property instanceof SectionPropertyInterface) {
            foreach ($property->getChildProperties() as $childProperty) {
                $this->addPropertyTags($childProperty);
            }
        } else {
            $this->addPropertyTags($property);
        }

        $this->properties[$property->getName()] = $property;
    }
protected function addChild ( PropertyInterface $ property ) { if ( $ property instanceof SectionPropertyInterface ) { foreach ( $ property -> getChildProperties ( ) as $ childProperty ) { $ this -> addPropertyTags ( $ childProperty ) ; } } else { $ this -> addPropertyTags ( $ property ) ; } $ this -> properties [ $ property -> getName ( ) ] = $ property ; }
adds a property to structure.

@param PropertyInterface $property
adds a property to structure .