1 | <?php |
||
25 | class RefreshTokenCreatedEvent extends Event |
||
26 | { |
||
27 | /** |
||
28 | * @var RefreshTokenId |
||
29 | */ |
||
30 | private $refreshTokenId; |
||
31 | |||
32 | /** |
||
33 | * @var ResourceOwnerId |
||
34 | */ |
||
35 | private $resourceOwnerId; |
||
36 | |||
37 | /** |
||
38 | * @var ClientId |
||
39 | */ |
||
40 | private $clientId; |
||
41 | |||
42 | /** |
||
43 | * @var DataBag |
||
44 | */ |
||
45 | private $parameters; |
||
46 | |||
47 | /** |
||
48 | * @var \DateTimeImmutable |
||
49 | */ |
||
50 | private $expiresAt; |
||
51 | |||
52 | /** |
||
53 | * @var DataBag |
||
54 | */ |
||
55 | private $metadatas; |
||
56 | |||
57 | /** |
||
58 | * @var ResourceServerId|null |
||
59 | */ |
||
60 | private $resourceServerId; |
||
61 | |||
62 | /** |
||
63 | * RefreshTokenCreatedEvent constructor. |
||
64 | * |
||
65 | * @param RefreshTokenId $refreshTokenId |
||
66 | * @param ResourceOwnerId $resourceOwnerId |
||
67 | * @param ClientId $clientId |
||
68 | * @param DataBag $parameters |
||
69 | * @param DataBag $metadatas |
||
70 | * @param \DateTimeImmutable $expiresAt |
||
71 | * @param ResourceServerId|null $resourceServerId |
||
72 | */ |
||
73 | protected function __construct(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, \DateTimeImmutable $expiresAt, ? ResourceServerId $resourceServerId) |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public static function getSchema(): string |
||
91 | |||
92 | /** |
||
93 | * @param RefreshTokenId $refreshTokenId |
||
94 | * @param ResourceOwnerId $resourceOwnerId |
||
95 | * @param ClientId $clientId |
||
96 | * @param DataBag $parameters |
||
97 | * @param DataBag $metadatas |
||
98 | * @param \DateTimeImmutable $expiresAt |
||
99 | * @param ResourceServerId|null $resourceServerId |
||
100 | * |
||
101 | * @return RefreshTokenCreatedEvent |
||
102 | */ |
||
103 | public static function create(RefreshTokenId $refreshTokenId, ResourceOwnerId $resourceOwnerId, ClientId $clientId, DataBag $parameters, DataBag $metadatas, \DateTimeImmutable $expiresAt, ? ResourceServerId $resourceServerId): self |
||
107 | |||
108 | /** |
||
109 | * @return RefreshTokenId |
||
110 | */ |
||
111 | public function getRefreshTokenId(): RefreshTokenId |
||
115 | |||
116 | /** |
||
117 | * @return ResourceOwnerId |
||
118 | */ |
||
119 | public function getResourceOwnerId(): ResourceOwnerId |
||
123 | |||
124 | /** |
||
125 | * @return ClientId |
||
126 | */ |
||
127 | public function getClientId(): ClientId |
||
131 | |||
132 | /** |
||
133 | * @return DataBag |
||
134 | */ |
||
135 | public function getParameters(): DataBag |
||
139 | |||
140 | /** |
||
141 | * @return \DateTimeImmutable |
||
142 | */ |
||
143 | public function getExpiresAt(): \DateTimeImmutable |
||
147 | |||
148 | /** |
||
149 | * @return DataBag |
||
150 | */ |
||
151 | public function getMetadatas(): DataBag |
||
155 | |||
156 | /** |
||
157 | * @return ResourceServerId |
||
|
|||
158 | */ |
||
159 | public function getResourceServerId(): ? ResourceServerId |
||
163 | |||
164 | /** |
||
165 | * {@inheritdoc} |
||
166 | */ |
||
167 | public function getDomainId(): Id |
||
171 | |||
172 | /** |
||
173 | * {@inheritdoc} |
||
174 | */ |
||
175 | public function getPayload() |
||
187 | |||
188 | /** |
||
189 | * {@inheritdoc} |
||
190 | */ |
||
191 | public static function createFromJson(\stdClass $json): DomainObject |
||
204 | } |
||
205 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.