| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 72 | public function __construct(ClientInterface $client, string $token, string $domain) |
|
| 32 | { |
||
| 33 | 72 | $this->client = $client; |
|
| 34 | 72 | $this->defaults = [ |
|
| 35 | 72 | 'allow_redirects' => false, |
|
| 36 | 72 | 'base_uri' => $domain, |
|
| 37 | 'headers' => [ |
||
| 38 | 'Content-Type' => 'application/json', |
||
| 39 | 'Accept' => 'application/json', |
||
| 40 | ], |
||
| 41 | 'query' => [ |
||
| 42 | 72 | 'key' => $token, |
|
| 43 | ], |
||
| 60 |