| @@ 102-121 (lines=20) @@ | ||
| 99 | return $ret; |
|
| 100 | } |
|
| 101 | ||
| 102 | private function navigate(Schema $schema, array &$visited) |
|
| 103 | { |
|
| 104 | if (isset($visited[spl_object_hash($schema)])) { |
|
| 105 | return; |
|
| 106 | } |
|
| 107 | $visited[spl_object_hash($schema)] = true; |
|
| 108 | ||
| 109 | foreach ($schema->getTypes() as $type) { |
|
| 110 | $this->visitType($type); |
|
| 111 | } |
|
| 112 | foreach ($schema->getElements() as $element) { |
|
| 113 | $this->visitElementDef($schema, $element); |
|
| 114 | } |
|
| 115 | ||
| 116 | foreach ($schema->getSchemas() as $schildSchema) { |
|
| 117 | if (!in_array($schildSchema->getTargetNamespace(), $this->baseSchemas, true)) { |
|
| 118 | $this->navigate($schildSchema, $visited); |
|
| 119 | } |
|
| 120 | } |
|
| 121 | } |
|
| 122 | ||
| 123 | private function visitTypeBase(&$class, &$data, Type $type, $name) |
|
| 124 | { |
|
| @@ 81-100 (lines=20) @@ | ||
| 78 | return $ret; |
|
| 79 | } |
|
| 80 | ||
| 81 | private function navigate(Schema $schema, array &$visited) |
|
| 82 | { |
|
| 83 | if (isset($visited[spl_object_hash($schema)])) { |
|
| 84 | return; |
|
| 85 | } |
|
| 86 | $visited[spl_object_hash($schema)] = true; |
|
| 87 | ||
| 88 | foreach ($schema->getTypes() as $type) { |
|
| 89 | $this->visitType($type); |
|
| 90 | } |
|
| 91 | foreach ($schema->getElements() as $element) { |
|
| 92 | $this->visitElementDef($element); |
|
| 93 | } |
|
| 94 | ||
| 95 | foreach ($schema->getSchemas() as $schildSchema) { |
|
| 96 | if (!in_array($schildSchema->getTargetNamespace(), $this->baseSchemas, true)) { |
|
| 97 | $this->navigate($schildSchema, $visited); |
|
| 98 | } |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| 102 | private function visitTypeBase(PHPClass $class, Type $type) |
|
| 103 | { |
|