| 1 | <?php declare(strict_types=1); |
||
| 11 | class RequestService |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ClientInterface |
||
| 15 | */ |
||
| 16 | private $client; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param ClientInterface $client |
||
| 20 | */ |
||
| 21 | 1 | public function __construct(ClientInterface $client) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param RequestInterface $request |
||
| 28 | * @param array $options |
||
| 29 | * @return CancellablePromiseInterface |
||
| 30 | */ |
||
| 31 | 1 | public function request(RequestInterface $request, array $options = []): CancellablePromiseInterface |
|
| 46 | } |
||
| 47 |