| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Authentication |
||
| 10 | { |
||
| 11 | protected ClientInterface $http; |
||
| 12 | |||
| 13 | protected Repository $config; |
||
| 14 | |||
| 15 | 1 | public function __construct(ClientInterface $http) |
|
| 16 | { |
||
| 17 | 1 | $this->http = $http; |
|
| 18 | 1 | $this->config = Container::getInstance()->make('config'); |
|
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array<string, mixed> |
||
| 23 | * |
||
| 24 | * @throws \GuzzleHttp\Exception\TransferException |
||
| 25 | */ |
||
| 26 | 1 | public function getToken(): array |
|
| 39 | } |
||
| 40 | } |
||
| 41 |