| 1 | <?php |
||
| 13 | class Client |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $apiKey; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var ClientInterface |
||
| 22 | */ |
||
| 23 | protected $httpClient; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Client constructor. |
||
| 27 | * |
||
| 28 | * @param string $apiKey |
||
| 29 | * @param ClientInterface|null $httpClient |
||
| 30 | */ |
||
| 31 | public function __construct($apiKey, |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param RequestInterface $request |
||
| 44 | * |
||
| 45 | * @return ResponseInterface |
||
| 46 | * |
||
| 47 | * @throws ApiException | SearchLimitException |
||
| 48 | */ |
||
| 49 | public function research(RequestInterface $request) |
||
| 61 | } |
||
| 62 |