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