1 | <?php |
||
11 | class RefreshTokenRepository implements RefreshTokenRepositoryInterface |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | */ |
||
16 | public function persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function getNewRefreshToken() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function revokeRefreshToken($tokenId) |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function isRefreshTokenRevoked($tokenId) |
||
66 | |||
67 | /** |
||
68 | * Find the Token for passed id. |
||
69 | * |
||
70 | * @param string $tokenId The id of the token. |
||
71 | * |
||
72 | * @return AccessToken|null |
||
73 | */ |
||
74 | public function findToken(string $tokenId): ?AccessToken |
||
78 | } |
||
79 |