1 | <?php |
||
16 | final class Client implements ClientInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var GuzzleClientInterface |
||
20 | */ |
||
21 | private $guzzleClient; |
||
22 | |||
23 | /** |
||
24 | * @var MapperInterface |
||
25 | */ |
||
26 | private $endpointMapper; |
||
27 | |||
28 | 22 | public function __construct( |
|
35 | |||
36 | 19 | public function getEndpoint(string $endpoint, QueryInterface $searchQuery): ResponseInterface |
|
43 | |||
44 | 2 | public function getUrl(string $url): ResponseInterface |
|
48 | |||
49 | 17 | public function getJson(ResponseInterface $response): string |
|
53 | |||
54 | 21 | private function get(string $url, ?array $options = []) |
|
62 | } |
||
63 |