| 1 | <?php |
||
| 17 | class OauthAccessToken implements AccessTokenEntityInterface |
||
| 18 | { |
||
| 19 | use AccessTokenTrait; |
||
| 20 | use EntityTrait; |
||
| 21 | use TokenEntityTrait; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var bool |
||
| 25 | */ |
||
| 26 | private $revoked = false; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var DateTimeImmutable |
||
| 30 | */ |
||
| 31 | private $createdAt; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var DateTimeImmutable |
||
| 35 | */ |
||
| 36 | private $updatedAt; |
||
| 37 | |||
| 38 | public function __construct( |
||
| 58 | |||
| 59 | public function isRevoked(): bool |
||
| 63 | |||
| 64 | public function revoke(): void |
||
| 68 | |||
| 69 | /** |
||
| 70 | * It will only set the identifier if it's not yet set. |
||
| 71 | */ |
||
| 72 | public function setIdentifier($identifier): void |
||
| 76 | } |
||
| 77 |