1 | <?php |
||
19 | class Client implements HttpClient, HttpAsyncClient |
||
20 | { |
||
21 | /** |
||
22 | * @var ClientInterface |
||
23 | */ |
||
24 | private $client; |
||
25 | |||
26 | /** |
||
27 | * @param ClientInterface|null $client |
||
28 | */ |
||
29 | 324 | public function __construct(ClientInterface $client = null) |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 159 | public function sendRequest(RequestInterface $request) |
|
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | 324 | public function sendAsyncRequest(RequestInterface $request) |
|
58 | } |
||
59 |