Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class ApiProvider implements ApiProviderInterface |
||
10 | { |
||
11 | const BASE_URI = 'https://api.linode.com/v4/'; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $token; |
||
17 | |||
18 | /** |
||
19 | * @var ClientInterface |
||
20 | */ |
||
21 | protected $client; |
||
22 | |||
23 | /** |
||
24 | * ApiProvider constructor. |
||
25 | * |
||
26 | * @param string $token |
||
27 | */ |
||
28 | public function __construct(string $token) |
||
31 | } |
||
32 | |||
33 | public function getClient(): ClientInterface |
||
40 | } |
||
41 | |||
42 | public function createClient(): ClientInterface |
||
54 |