| Total Complexity | 4 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class Config |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $clientId; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $clientSecret; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $redirectUri; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $clientId |
||
| 26 | * @param string $clientSecret |
||
| 27 | * @param string $redirectUri |
||
| 28 | */ |
||
| 29 | public function __construct(string $clientId, string $clientSecret, string $redirectUri) |
||
| 30 | { |
||
| 31 | $this->clientId = $clientId; |
||
| 32 | $this->clientSecret = $clientSecret; |
||
| 33 | $this->redirectUri = $redirectUri; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getClientId(): string |
||
| 40 | { |
||
| 41 | return $this->clientId; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getClientSecret(): string |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public function getRedirectUri(): string |
||
| 63 | } |