예제 #1
0
 private function visitAttributeGroup(PHPClass $class, Schema $schema, AttributeGroup $att)
 {
     foreach ($att->getAttributes() as $childAttr) {
         if ($childAttr instanceof AttributeGroup) {
             $this->visitAttributeGroup($class, $schema, $childAttr);
         } else {
             $property = $this->visitAttribute($class, $schema, $childAttr);
             $class->addProperty($property);
         }
     }
 }