1 | <?php |
||
21 | class AccessTokenRevokedEvent extends Event |
||
22 | { |
||
23 | /** |
||
24 | * @var AccessTokenId |
||
25 | */ |
||
26 | private $accessTokenId; |
||
27 | |||
28 | /** |
||
29 | * AccessTokenRevokedEvent constructor. |
||
30 | * |
||
31 | * @param AccessTokenId $accessTokenId |
||
32 | */ |
||
33 | protected function __construct(AccessTokenId $accessTokenId) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public static function getSchema(): string |
||
45 | |||
46 | /** |
||
47 | * @param AccessTokenId $accessTokenId |
||
48 | * |
||
49 | * @return AccessTokenRevokedEvent |
||
50 | */ |
||
51 | public static function create(AccessTokenId $accessTokenId): self |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public static function createFromJson(\stdClass $json): DomainObject |
||
65 | |||
66 | /** |
||
67 | * @return AccessTokenId |
||
68 | */ |
||
69 | public function getAccessTokenId(): AccessTokenId |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function getDomainId(): Id |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | public function getPayload() |
||
88 | } |
||
89 |