Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class GuzzleAdapter extends AbstractAdapter |
||
9 | { |
||
10 | public function getClient(): Client |
||
11 | { |
||
12 | if (!$this->client) { |
||
13 | $this->setClient(new Client([ |
||
14 | 'base_uri' => sprintf('https://%s.highrisehq.com', $this->getSubdomain()), |
||
15 | 'headers' => [ |
||
16 | 'User-Agent' => static::HEADER_DEFAULT_USER_AGENT, |
||
17 | ], |
||
18 | 'auth' => [$this->getToken(), $this->getPassword()] |
||
19 | ])); |
||
20 | } |
||
21 | return $this->client; |
||
22 | } |
||
23 | |||
24 | protected function send(string $method, string $uri, array $options = []) |
||
28 | } |
||
29 | } |
||
30 |