@@ -19,7 +19,13 @@ |
||
19 | 19 | { |
20 | 20 | public function hint(): string; |
21 | 21 | |
22 | + /** |
|
23 | + * @return Token |
|
24 | + */ |
|
22 | 25 | public function find(string $token): ?Token; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function revoke(Token $token): void; |
25 | 31 | } |
@@ -23,6 +23,10 @@ |
||
23 | 23 | private $expiresAt; |
24 | 24 | private $userAccountId; |
25 | 25 | |
26 | + /** |
|
27 | + * @param UserAccountId $userAccountId |
|
28 | + * @param \DateTimeImmutable|null $expiresAt |
|
29 | + */ |
|
26 | 30 | public function __construct(InitialAccessTokenId $initialAccessTokenId, ?UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt) |
27 | 31 | { |
28 | 32 | $this->initialAccessTokenId = $initialAccessTokenId; |
@@ -31,6 +31,7 @@ |
||
31 | 31 | |
32 | 32 | /** |
33 | 33 | * This function checks the request. |
34 | + * @return void |
|
34 | 35 | */ |
35 | 36 | public function checkRequest(ServerRequestInterface $request): void; |
36 | 37 |
@@ -18,5 +18,8 @@ |
||
18 | 18 | |
19 | 19 | interface Checker |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function check(OAuth2Token $token, OAuth2 $configuration): void; |
22 | 25 | } |
@@ -209,6 +209,9 @@ discard block |
||
209 | 209 | return \array_key_exists($param, $this->getResponseParameters()); |
210 | 210 | } |
211 | 211 | |
212 | + /** |
|
213 | + * @param string $value |
|
214 | + */ |
|
212 | 215 | public function setResponseHeader(string $responseHeader, $value): void |
213 | 216 | { |
214 | 217 | $this->responseHeaders[$responseHeader] = $value; |
@@ -274,6 +277,9 @@ discard block |
||
274 | 277 | $this->resourceServer = $resourceServer; |
275 | 278 | } |
276 | 279 | |
280 | + /** |
|
281 | + * @param string $value |
|
282 | + */ |
|
277 | 283 | public function setConsentScreenOption(string $option, $value): void |
278 | 284 | { |
279 | 285 | $this->consentScreenOptions[$option] = $value; |
@@ -19,6 +19,9 @@ |
||
19 | 19 | |
20 | 20 | interface ConsentHandler |
21 | 21 | { |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function prepare(ServerRequestInterface $serverRequest, string $authorizationId, AuthorizationRequest $authorizationRequest): void; |
23 | 26 | |
24 | 27 | public function hasBeenProcessed(ServerRequestInterface $serverRequest, string $authorizationId, AuthorizationRequest $authorizationRequest): bool; |
@@ -18,5 +18,8 @@ |
||
18 | 18 | |
19 | 19 | interface Extension |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function process(ServerRequestInterface $request, AuthorizationRequest $authorization): void; |
22 | 25 | } |
@@ -19,6 +19,9 @@ |
||
19 | 19 | |
20 | 20 | interface LoginHandler |
21 | 21 | { |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function prepare(ServerRequestInterface $serverRequest, string $authorizationId, AuthorizationRequest $authorizationRequest): void; |
23 | 26 | |
24 | 27 | public function hasBeenProcessed(ServerRequestInterface $serverRequest, string $authorizationId, AuthorizationRequest $authorizationRequest): bool; |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface ParameterChecker |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function check(AuthorizationRequest $authorization): void; |
21 | 24 | } |