1 | <?php |
||
14 | class RefreshTokenRepository extends EntityRepository implements RefreshTokenRepositoryInterface |
||
15 | { |
||
16 | /** |
||
17 | * @return RefreshToken |
||
18 | */ |
||
19 | public function getNewRefreshToken() |
||
23 | |||
24 | /** |
||
25 | * @param RefreshTokenEntityInterface $refreshTokenEntity |
||
26 | * @return RefreshTokenEntityInterface |
||
27 | * @throws \Doctrine\ORM\OptimisticLockException |
||
28 | */ |
||
29 | public function persistNewRefreshToken(RefreshTokenEntityInterface $refreshTokenEntity) |
||
36 | |||
37 | /** |
||
38 | * @param string $tokenId |
||
39 | * @return bool |
||
40 | * @throws \Doctrine\ORM\ORMException |
||
41 | * @throws \Doctrine\ORM\OptimisticLockException |
||
42 | * @throws \Doctrine\ORM\TransactionRequiredException |
||
43 | */ |
||
44 | public function revokeRefreshToken($tokenId) |
||
56 | |||
57 | /** |
||
58 | * @param string $tokenId |
||
59 | * @return bool |
||
60 | * @throws \Doctrine\ORM\ORMException |
||
61 | * @throws \Doctrine\ORM\OptimisticLockException |
||
62 | * @throws \Doctrine\ORM\TransactionRequiredException |
||
63 | */ |
||
64 | public function isRefreshTokenRevoked($tokenId) |
||
74 | } |