| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function createClient(array $config = []) |
||
| 29 | { |
||
| 30 | if (!class_exists(Client::class)) { |
||
| 31 | throw new \LogicException('To use the mock adapter you need to install the "php-http/mock-client" package.'); |
||
| 32 | } |
||
| 33 | |||
| 34 | if (!$this->client) { |
||
| 35 | $this->client = new Client(); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $this->client; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |