1 | <?php |
||
21 | class RefreshTokenRevokedEvent extends Event |
||
22 | { |
||
23 | /** |
||
24 | * @var RefreshTokenId |
||
25 | */ |
||
26 | private $refreshTokenId; |
||
27 | |||
28 | /** |
||
29 | * RefreshTokenRevokedEvent constructor. |
||
30 | * |
||
31 | * @param RefreshTokenId $refreshTokenId |
||
32 | */ |
||
33 | protected function __construct(RefreshTokenId $refreshTokenId) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public static function getSchema(): string |
||
45 | |||
46 | /** |
||
47 | * @param RefreshTokenId $refreshTokenId |
||
48 | * |
||
49 | * @return RefreshTokenRevokedEvent |
||
50 | */ |
||
51 | public static function create(RefreshTokenId $refreshTokenId): self |
||
55 | |||
56 | /** |
||
57 | * @return RefreshTokenId |
||
58 | */ |
||
59 | public function getRefreshTokenId(): RefreshTokenId |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function getDomainId(): Id |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function getPayload() |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public static function createFromJson(\stdClass $json): DomainObject |
||
88 | } |
||
89 |