@@ -24,6 +24,7 @@ |
||
| 24 | 24 | * @param string[] $aliases |
| 25 | 25 | * @param mixed[] $properties |
| 26 | 26 | * @param Link[] $links |
| 27 | + * @param string $subject |
|
| 27 | 28 | */ |
| 28 | 29 | public function __construct(?string $subject, array $aliases, array $properties, array $links) |
| 29 | 30 | { |
@@ -17,5 +17,8 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface ResourceRepository |
| 19 | 19 | { |
| 20 | + /** |
|
| 21 | + * @return null|ResourceDescriptor |
|
| 22 | + */ |
|
| 20 | 23 | public function find(string $resource, Identifier $identifier): ?ResourceDescriptor; |
| 21 | 24 | } |
@@ -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; |
@@ -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; |
@@ -21,6 +21,10 @@ |
||
| 21 | 21 | |
| 22 | 22 | private $errorDescription; |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param string|null $errorDescription |
|
| 26 | + * @param \Exception $previous |
|
| 27 | + */ |
|
| 24 | 28 | public function __construct(string $error, ?string $errorDescription, AuthorizationRequest $authorization, ?\Exception $previous = null) |
| 25 | 29 | { |
| 26 | 30 | $this->authorization = $authorization; |
@@ -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 | } |