| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 4 | public function createWebService(string $url, array $options): WebServiceInterface |
|
| 31 | { |
||
| 32 | 4 | if (empty($url)) { |
|
| 33 | 1 | throw new InvalidArgumentException('WSDL URL cannot be empty.'); |
|
| 34 | } |
||
| 35 | |||
| 36 | 3 | $soapClient = new \SoapClient($url, $options); |
|
| 37 | 3 | return new $this->class($soapClient, $options); |
|
| 38 | } |
||
| 39 | } |
||
| 40 |