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