Goetas\Xsd\XsdToPhp\Php\PhpConverter::visitAttributeGroup PHP Method

visitAttributeGroup() private method

private visitAttributeGroup ( PHPClass $class, GoetasWebservices\XML\XSDReader\Schema\Schema $schema, GoetasWebservices\XML\XSDReader\Schema\Attribute\Group $att )
$class Goetas\Xsd\XsdToPhp\Php\Structure\PHPClass
$schema GoetasWebservices\XML\XSDReader\Schema\Schema
$att GoetasWebservices\XML\XSDReader\Schema\Attribute\Group
    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);
            }
        }
    }