@@ 117-127 (lines=11) @@ | ||
114 | } |
|
115 | } |
|
116 | ||
117 | private function visitGroup(PHPClass $class, Schema $schema, Group $group) |
|
118 | { |
|
119 | foreach ($group->getElements() as $childGroup) { |
|
120 | if ($childGroup instanceof Group) { |
|
121 | $this->visitGroup($class, $schema, $childGroup); |
|
122 | } else { |
|
123 | $property = $this->visitElement($class, $schema, $childGroup); |
|
124 | $class->addProperty($property); |
|
125 | } |
|
126 | } |
|
127 | } |
|
128 | ||
129 | private function visitAttributeGroup(PHPClass $class, Schema $schema, AttributeGroup $att) |
|
130 | { |
|
@@ 284-295 (lines=12) @@ | ||
281 | return $this->classes[spl_object_hash($type)]["class"]; |
|
282 | } |
|
283 | ||
284 | private function visitComplexType(PHPClass $class, ComplexType $type) |
|
285 | { |
|
286 | $schema = $type->getSchema(); |
|
287 | foreach ($type->getElements() as $element) { |
|
288 | if ($element instanceof Group) { |
|
289 | $this->visitGroup($class, $schema, $element); |
|
290 | } else { |
|
291 | $property = $this->visitElement($class, $schema, $element); |
|
292 | $class->addProperty($property); |
|
293 | } |
|
294 | } |
|
295 | } |
|
296 | ||
297 | private function visitSimpleType(PHPClass $class, SimpleType $type) |
|
298 | { |