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