| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function load($wsdl) |
||
| 39 | { |
||
| 40 | if (!isset($this->metadataCache[$wsdl])) { |
||
| 41 | $this->wsdlReader->readFile($wsdl); |
||
| 42 | try { |
||
| 43 | $this->metadataCache[$wsdl] = $this->metadataGenerator->generate($this->soapReader->getServices()); |
||
| 44 | } catch (\Exception $e) { |
||
| 45 | throw new MetadataException(sprintf("Can not generate metadata information for %s", $wsdl), 0, $e); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | return $this->metadataCache[$wsdl]; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |