Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function __construct(string $serverKey, string $endpoint = self::DEFAULT_ENDPOINT, int $guzzleTimeOut = self::DEFAULT_GUZZLE_TIMEOUT) |
||
33 | { |
||
34 | $options = [ |
||
35 | 'base_uri' => \rtrim($endpoint, '/'), |
||
36 | 'timeout' => $guzzleTimeOut, |
||
37 | 'http_errors' => false, |
||
38 | 'headers' => [ |
||
39 | 'Authorization' => \sprintf('key=%s', $serverKey), |
||
40 | 'Content-Type' => 'application/json', |
||
41 | ], |
||
42 | ]; |
||
43 | |||
44 | parent::__construct($options); |
||
45 | } |
||
46 | } |
||
47 |