| Total Complexity | 6 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class AccessTokenRepository implements AccessTokenRepositoryInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | public function persistNewAccessToken(AccessTokenEntityInterface $accessTokenEntity): void |
||
| 26 | { |
||
| 27 | // Some logic here to save the access token to a database |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function revokeAccessToken($tokenId): void |
||
| 34 | { |
||
| 35 | // Some logic here to revoke the access token |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function isAccessTokenRevoked($tokenId): bool |
||
| 42 | { |
||
| 43 | return false; // Access token hasn't been revoked |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | public function getNewToken(ClientEntityInterface $clientEntity, array $scopes, $userIdentifier = null): AccessTokenEntityInterface |
||
| 64 | } |
||
| 65 | } |
||
| 66 |