Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | class RefreshTokenRepository implements RefreshTokenRepositoryInterface |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public function persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity): void |
||
26 | // Some logic to persist the refresh token in a database |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function revokeRefreshToken($tokenId): void |
||
34 | // Some logic to revoke the refresh token in a database |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function isRefreshTokenRevoked($tokenId): bool |
||
41 | { |
||
42 | return false; // The refresh token has not been revoked |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function getNewRefreshToken(): ?RefreshTokenEntityInterface |
||
51 | } |
||
52 | } |
||
53 |