|
@@ 130-137 (lines=8) @@
|
| 127 |
|
|
| 128 |
|
private function visitAttributeGroup(PHPClass $class, Schema $schema, AttributeGroup $att) |
| 129 |
|
{ |
| 130 |
|
foreach ($att->getAttributes() as $childAttr) { |
| 131 |
|
if ($childAttr instanceof AttributeGroup) { |
| 132 |
|
$this->visitAttributeGroup($class, $schema, $childAttr); |
| 133 |
|
} else { |
| 134 |
|
$property = $this->visitAttribute($class, $schema, $childAttr); |
| 135 |
|
$class->addProperty($property); |
| 136 |
|
} |
| 137 |
|
} |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
private function visitElementDef(ElementDef $element) |
|
@@ 334-341 (lines=8) @@
|
| 331 |
|
} |
| 332 |
|
$schema = $type->getSchema(); |
| 333 |
|
|
| 334 |
|
foreach ($type->getAttributes() as $attr) { |
| 335 |
|
if ($attr instanceof AttributeGroup) { |
| 336 |
|
$this->visitAttributeGroup($class, $schema, $attr); |
| 337 |
|
} else { |
| 338 |
|
$property = $this->visitAttribute($class, $schema, $attr); |
| 339 |
|
$class->addProperty($property); |
| 340 |
|
} |
| 341 |
|
} |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
private function visitAttribute(PHPClass $class, Schema $schema, AttributeItem $attribute, $arrayize = true) |