Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Api |
||
11 | { |
||
12 | protected Client $client; |
||
13 | |||
14 | 1 | public function __construct(string $accessToken, string $environment) |
|
15 | { |
||
16 | 1 | $this->client = new Client([ |
|
17 | 1 | 'access_token' => $accessToken, |
|
18 | 1 | 'environment' => $environment, |
|
19 | 1 | ]); |
|
20 | } |
||
21 | |||
22 | 1 | public function originalClient(): Client |
|
23 | { |
||
24 | 1 | return $this->client; |
|
25 | } |
||
26 | |||
27 | 1 | public function __call($method, $parameters) |
|
30 | } |
||
31 | } |
||
32 |