| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | 18 | public function __construct(string $key, array $config = []) |
|
| 40 | { |
||
| 41 | 18 | if (empty($key)) { |
|
| 42 | 3 | throw new MissingAPIKeyException(); |
|
| 43 | } |
||
| 44 | |||
| 45 | 15 | $this->apiKey = $key; |
|
| 46 | $baseConfig = [ |
||
| 47 | 15 | 'base_uri' => self::BASE_URI, |
|
| 48 | 15 | RequestOptions::TIMEOUT => self::TIMEOUT |
|
| 49 | ]; |
||
| 50 | 15 | parent::__construct(array_merge($baseConfig, $config)); |
|
| 51 | 15 | } |
|
| 61 |