| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 3 | public function createWebService(string $url, array $options): WebServiceInterface |
|
| 42 | { |
||
| 43 | 3 | if (empty($url)) { |
|
| 44 | 1 | throw new InvalidArgumentException('WSDL URL cannot be empty.'); |
|
| 45 | } |
||
| 46 | |||
| 47 | 2 | $soapClient = new \SoapClient($url, $options); |
|
| 48 | 2 | return new $this->class($soapClient, $options, $this->eventDispatcher); |
|
| 49 | } |
||
| 50 | } |
||
| 51 |