Example #1
0
 /**
  * adds a property to structure.
  *
  * @param PropertyInterface $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;
 }