1 | <?php |
||
14 | class Client implements IEXCloud |
||
15 | { |
||
16 | /** |
||
17 | * @var Guzzle|null |
||
18 | */ |
||
19 | private $client = null; |
||
20 | |||
21 | /** |
||
22 | * Client constructor. |
||
23 | * |
||
24 | * @param Guzzle $client |
||
25 | */ |
||
26 | 92 | public function __construct(Guzzle $client) |
|
30 | |||
31 | /** |
||
32 | * @param RequestInterface $request |
||
33 | * @param array $options |
||
34 | * |
||
35 | * @return ResponseInterface |
||
36 | * @throws GuzzleException |
||
37 | * @throws WrongData |
||
38 | */ |
||
39 | public function send(RequestInterface $request, array $options = []): ResponseInterface |
||
49 | |||
50 | /** |
||
51 | * Merge the global query with current query (if has it) |
||
52 | * |
||
53 | * @param RequestInterface $request |
||
54 | * @return array |
||
55 | */ |
||
56 | private function mergeQuery(RequestInterface $request) { |
||
65 | } |
||
66 |