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