| @@ 164-166 (lines=3) @@ | ||
| 161 | { |
|
| 162 | $schema = $item->getSchema(); |
|
| 163 | ||
| 164 | if (!isset($this->namespaces[$schema->getTargetNamespace()])) { |
|
| 165 | throw new Exception(sprintf("Can't find a PHP namespace to '%s' namespace", $schema->getTargetNamespace())); |
|
| 166 | } |
|
| 167 | return $this->namespaces[$schema->getTargetNamespace()]; |
|
| 168 | } |
|
| 169 | ||
| @@ 152-154 (lines=3) @@ | ||
| 149 | $class->setName($this->getNamingStrategy()->getItemName($element)); |
|
| 150 | $class->setDoc($element->getDoc()); |
|
| 151 | ||
| 152 | if (!isset($this->namespaces[$schema->getTargetNamespace()])) { |
|
| 153 | throw new Exception(sprintf("Can't find a PHP namespace to '%s' namespace", $schema->getTargetNamespace())); |
|
| 154 | } |
|
| 155 | $class->setNamespace($this->namespaces[$schema->getTargetNamespace()]); |
|
| 156 | ||
| 157 | $this->classes[spl_object_hash($element)]["class"] = $class; |
|
| @@ 189-191 (lines=3) @@ | ||
| 186 | ||
| 187 | $name = $this->getNamingStrategy()->getTypeName($type); |
|
| 188 | ||
| 189 | if (!isset($this->namespaces[$schema->getTargetNamespace()])) { |
|
| 190 | throw new Exception(sprintf("Can't find a PHP namespace to '%s' namespace", $schema->getTargetNamespace())); |
|
| 191 | } |
|
| 192 | $ns = $this->namespaces[$schema->getTargetNamespace()]; |
|
| 193 | return [ |
|
| 194 | $name, |
|