@@ -15,5 +15,8 @@ |
||
| 15 | 15 | |
| 16 | 16 | interface TrustedIssuerRepository |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @return void |
|
| 20 | + */ |
|
| 18 | 21 | public function find(string $trustedIssuer): ?TrustedIssuer; |
| 19 | 22 | } |
@@ -24,6 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * @param string[] $titles |
| 26 | 26 | * @param mixed[] $properties |
| 27 | + * @param string $href |
|
| 27 | 28 | */ |
| 28 | 29 | public function __construct(string $rel, ?string $type, ?string $href, array $titles, array $properties) |
| 29 | 30 | { |
@@ -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 | } |
@@ -26,6 +26,9 @@ |
||
| 26 | 26 | private $redirectUri; |
| 27 | 27 | private $used; |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param ResourceServerId|null $resourceServerId |
|
| 31 | + */ |
|
| 29 | 32 | public function __construct(AuthorizationCodeId $authorizationCodeId, ClientId $clientId, UserAccountId $userAccountId, array $queryParameters, string $redirectUri, \DateTimeImmutable $expiresAt, DataBag $parameter, DataBag $metadata, ?ResourceServerId $resourceServerId) |
| 30 | 33 | { |
| 31 | 34 | parent::__construct($authorizationCodeId, $clientId, $userAccountId, $parameter, $metadata, $expiresAt, $resourceServerId); |
@@ -30,6 +30,9 @@ |
||
| 30 | 30 | return 'auth_code'; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @return Token |
|
| 35 | + */ |
|
| 33 | 36 | public function find(string $token): ?Token |
| 34 | 37 | { |
| 35 | 38 | $id = new AuthorizationCodeId($token); |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | $this->accessTokenHandlers[] = $accessTokenHandler; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @return AccessToken |
|
| 30 | + */ |
|
| 28 | 31 | public function find(AccessTokenId $tokenId): ?AccessToken |
| 29 | 32 | { |
| 30 | 33 | foreach ($this->accessTokenHandlers as $accessTokenHandler) { |
@@ -66,6 +66,9 @@ |
||
| 66 | 66 | return $this->get($this->defaultTokenType); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @return string |
|
| 71 | + */ |
|
| 69 | 72 | public function findToken(ServerRequestInterface $request, array &$additionalCredentialValues, ?TokenType &$type = null): ?string |
| 70 | 73 | { |
| 71 | 74 | foreach ($this->all() as $tmp_type) { |
@@ -30,6 +30,9 @@ |
||
| 30 | 30 | return 'refresh_token'; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @return Token |
|
| 35 | + */ |
|
| 33 | 36 | public function find(string $token): ?Token |
| 34 | 37 | { |
| 35 | 38 | $id = new RefreshTokenId($token); |