@@ 116-126 (lines=11) @@ | ||
113 | } |
|
114 | } |
|
115 | ||
116 | private function visitGroup(PHPClass $class, Schema $schema, Group $group) |
|
117 | { |
|
118 | foreach ($group->getElements() as $childGroup) { |
|
119 | if ($childGroup instanceof Group) { |
|
120 | $this->visitGroup($class, $schema, $childGroup); |
|
121 | } else { |
|
122 | $property = $this->visitElement($class, $schema, $childGroup); |
|
123 | $class->addProperty($property); |
|
124 | } |
|
125 | } |
|
126 | } |
|
127 | ||
128 | private function visitAttributeGroup(PHPClass $class, Schema $schema, AttributeGroup $att) |
|
129 | { |
|
@@ 265-276 (lines=12) @@ | ||
262 | return $this->classes[spl_object_hash($type)]["class"]; |
|
263 | } |
|
264 | ||
265 | private function visitComplexType(PHPClass $class, ComplexType $type) |
|
266 | { |
|
267 | $schema = $type->getSchema(); |
|
268 | foreach ($type->getElements() as $element) { |
|
269 | if ($element instanceof Group) { |
|
270 | $this->visitGroup($class, $schema, $element); |
|
271 | } else { |
|
272 | $property = $this->visitElement($class, $schema, $element); |
|
273 | $class->addProperty($property); |
|
274 | } |
|
275 | } |
|
276 | } |
|
277 | ||
278 | private function visitSimpleType(PHPClass $class, SimpleType $type) |
|
279 | { |