| Total Complexity | 6 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | final class Config implements ConfigInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @return string |
||
| 12 | */ |
||
| 13 | public function getClientId(): string |
||
| 14 | { |
||
| 15 | $clientId = (string)getenv('CLIENT_ID'); |
||
| 16 | if (empty($clientId)) { |
||
| 17 | throw new RuntimeException( |
||
| 18 | sprintf(Message::ERROR_GET_ENV_VARIABLE, CLIENT_ID) |
||
|
|
|||
| 19 | ); |
||
| 20 | } |
||
| 21 | |||
| 22 | return $clientId; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public function getClientSecret(): string |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getRedirectUri(): string |
||
| 56 | } |