1 | <?php |
||
22 | class AccessTokenAddedToRefreshTokenEvent extends Event |
||
23 | { |
||
24 | /** |
||
25 | * @var RefreshTokenId |
||
26 | */ |
||
27 | private $refreshTokenId; |
||
28 | |||
29 | /** |
||
30 | * @var AccessTokenId |
||
31 | */ |
||
32 | private $accessTokenId; |
||
33 | |||
34 | /** |
||
35 | * AccessTokenAddedToRefreshTokenEvent constructor. |
||
36 | * |
||
37 | * @param RefreshTokenId $refreshTokenId |
||
38 | * @param AccessTokenId $accessTokenId |
||
39 | */ |
||
40 | protected function __construct(RefreshTokenId $refreshTokenId, AccessTokenId $accessTokenId) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public static function getSchema(): string |
||
53 | |||
54 | /** |
||
55 | * @param RefreshTokenId $refreshTokenId |
||
56 | * @param AccessTokenId $accessTokenId |
||
57 | * |
||
58 | * @return AccessTokenAddedToRefreshTokenEvent |
||
59 | */ |
||
60 | public static function create(RefreshTokenId $refreshTokenId, AccessTokenId $accessTokenId): self |
||
64 | |||
65 | /** |
||
66 | * @return RefreshTokenId |
||
67 | */ |
||
68 | public function getRefreshTokenId(): RefreshTokenId |
||
72 | |||
73 | /** |
||
74 | * @return AccessTokenId |
||
75 | */ |
||
76 | public function getAccessTokenId(): AccessTokenId |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function getDomainId(): Id |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function getPayload() |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public static function createFromJson(\stdClass $json): DomainObject |
||
109 | } |
||
110 |