| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.0625 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 1 | public function createClient(array $config = []): HttpClient |
|
| 29 | { |
||
| 30 | 1 | if (! class_exists(Client::class)) { |
|
| 31 | throw new LogicException('To use the Socket client you need to install the "php-http/socket-client" package.'); |
||
| 32 | } |
||
| 33 | |||
| 34 | 1 | return new Client($this->messageFactory, $config); |
|
| 35 | } |
||
| 37 |