1 | <?php |
||
13 | class GuzzleClient implements ClientInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var GuzzleHttpClient The Guzzle client. |
||
17 | */ |
||
18 | protected $client; |
||
19 | |||
20 | /** |
||
21 | * @param GuzzleHttpClient|null $client The Guzzle client. |
||
22 | */ |
||
23 | 1 | public function __construct(GuzzleHttpClient $client = null) |
|
24 | { |
||
25 | 1 | $this->client = $client ?: new GuzzleHttpClient(); |
|
26 | 1 | } |
|
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function send(Request $request, $timeout) |
||
55 | } |
||
56 |