| Total Complexity | 6 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 1 | class AuthorizationCode implements IAuthorizationCode |
|
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $authorizationCode |
||
| 18 | * @param DateTime $expires |
||
| 19 | * @param string|int $clientId |
||
| 20 | * @param string|int|null $userId |
||
| 21 | * @param array<string> $scope |
||
| 22 | */ |
||
| 23 | 1 | public function __construct( |
|
| 24 | private readonly string $authorizationCode, |
||
| 25 | private readonly DateTime $expires, |
||
| 26 | private readonly string|int $clientId, |
||
| 27 | private readonly string|int|null $userId, |
||
| 28 | private readonly array $scope, |
||
| 29 | ) |
||
| 30 | { |
||
| 31 | 1 | } |
|
| 32 | |||
| 33 | public function getAuthorizationCode(): string |
||
| 34 | { |
||
| 35 | 1 | return $this->authorizationCode; |
|
| 36 | } |
||
| 37 | |||
| 38 | public function getClientId(): string|int |
||
| 39 | { |
||
| 40 | 1 | return $this->clientId; |
|
| 41 | } |
||
| 42 | |||
| 43 | public function getUserId(): string|int|null |
||
| 44 | { |
||
| 45 | 1 | return $this->userId; |
|
| 46 | } |
||
| 47 | |||
| 48 | public function getExpires(): DateTime |
||
| 51 | } |
||
| 52 | |||
| 53 | public function getScope(): array |
||
| 56 | } |
||
| 57 | } |
||
| 58 |