1 | <?php |
||
18 | abstract class AbstractInitialAccessToken implements InitialAccessToken |
||
19 | { |
||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | private $revoked; |
||
24 | |||
25 | /** |
||
26 | * @var \DateTimeImmutable|null |
||
27 | */ |
||
28 | private $expiresAt; |
||
29 | |||
30 | /** |
||
31 | * @var UserAccountId|null |
||
32 | */ |
||
33 | private $userAccountId; |
||
34 | |||
35 | public function __construct(?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt) |
||
41 | |||
42 | public function getUserAccountId(): ?UserAccountId |
||
46 | |||
47 | public function getExpiresAt(): ?\DateTimeImmutable |
||
51 | |||
52 | public function hasExpired(): bool |
||
56 | |||
57 | public function isRevoked(): bool |
||
61 | |||
62 | public function markAsRevoked(): void |
||
66 | |||
67 | public function jsonSerialize() |
||
78 | } |
||
79 |