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