1 | <?php |
||
23 | class AuthorizationCode implements \JsonSerializable |
||
24 | { |
||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private $queryParameters; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $redirectUri; |
||
34 | |||
35 | /** |
||
36 | * @var bool |
||
37 | */ |
||
38 | private $used; |
||
39 | |||
40 | /** |
||
41 | * @var TokenId |
||
42 | */ |
||
43 | protected $tokenId; |
||
44 | |||
45 | /** |
||
46 | * @var \DateTimeImmutable |
||
47 | */ |
||
48 | private $expiresAt; |
||
49 | |||
50 | /** |
||
51 | * @var ResourceOwnerId |
||
52 | */ |
||
53 | private $resourceOwnerId; |
||
54 | |||
55 | /** |
||
56 | * @var ClientId |
||
57 | */ |
||
58 | private $clientId; |
||
59 | |||
60 | /** |
||
61 | * @var DataBag |
||
62 | */ |
||
63 | private $parameter; |
||
64 | |||
65 | /** |
||
66 | * @var DataBag |
||
67 | */ |
||
68 | private $metadata; |
||
69 | |||
70 | /** |
||
71 | * @var bool |
||
72 | */ |
||
73 | private $revoked; |
||
74 | |||
75 | /** |
||
76 | * @var ResourceServerId|null |
||
77 | */ |
||
78 | private $resourceServerId; |
||
79 | |||
80 | public function __construct(AuthorizationCodeId $authorizationCodeId, ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameter, DataBag $metadata, ?ResourceServerId $resourceServerId) |
||
94 | |||
95 | public function getQueryParameters(): array |
||
99 | |||
100 | public function isUsed(): bool |
||
104 | |||
105 | public function markAsUsed(): void |
||
109 | |||
110 | public function getQueryParams(): array |
||
114 | |||
115 | public function getQueryParam(string $key) |
||
123 | |||
124 | public function hasQueryParam(string $key): bool |
||
128 | |||
129 | public function getRedirectUri(): string |
||
133 | |||
134 | public function toArray(): array |
||
140 | |||
141 | public function getTokenId(): TokenId |
||
145 | |||
146 | public function getExpiresAt(): \DateTimeImmutable |
||
150 | |||
151 | public function hasExpired(): bool |
||
155 | |||
156 | public function getResourceOwnerId(): ResourceOwnerId |
||
160 | |||
161 | public function getClientId(): ClientId |
||
165 | |||
166 | public function getParameter(): DataBag |
||
170 | |||
171 | public function getMetadata(): DataBag |
||
175 | |||
176 | public function isRevoked(): bool |
||
180 | |||
181 | public function markAsRevoked(): void |
||
185 | |||
186 | public function getResourceServerId(): ?ResourceServerId |
||
190 | |||
191 | public function getExpiresIn(): int |
||
200 | |||
201 | public function jsonSerialize() |
||
220 | } |
||
221 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.