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