private function visitBaseComplexType(PHPClass $class, BaseComplexType $type)
{
$parent = $type->getParent();
if ($parent) {
$parentType = $parent->getBase();
if ($parentType instanceof Type) {
$this->handleClassExtension($class, $parentType);
}
}
$schema = $type->getSchema();
foreach ($type->getAttributes() as $attr) {
if ($attr instanceof AttributeGroup) {
$this->visitAttributeGroup($class, $schema, $attr);
} else {
$property = $this->visitAttribute($class, $schema, $attr);
$class->addProperty($property);
}
}
}