Total Complexity | 2 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class FixerHttpClient extends Client |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | const BASE_URI = "http://data.fixer.io/api"; |
||
19 | |||
20 | /** |
||
21 | * Time to wait in seconds before interrupting the request. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | const TIMEOUT = 5; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $apiKey; |
||
31 | |||
32 | /** |
||
33 | * FixerHttpClient constructor. |
||
34 | * |
||
35 | * @param string $key |
||
36 | * @param array $config |
||
37 | * @throws MissingAPIKeyException |
||
38 | */ |
||
39 | public function __construct(string $key, array $config = []) |
||
53 |