@@ -42,6 +42,9 @@ |
||
42 | 42 | private $accessTokenRepository; |
43 | 43 | private $accessTokenLifetime; |
44 | 44 | |
45 | + /** |
|
46 | + * @param UserAccountRepository $userAccountRepository |
|
47 | + */ |
|
45 | 48 | public function __construct(ClientRepository $clientRepository, ?UserAccountRepository $userAccountRepository, TokenEndpointExtensionManager $tokenEndpointExtensionManager, ResponseFactory $responseFactory, AccessTokenIdGenerator $accessTokenIdGenerator, AccessTokenRepository $accessTokenRepository, int $accessLifetime) |
46 | 49 | { |
47 | 50 | $this->clientRepository = $clientRepository; |
@@ -19,6 +19,9 @@ |
||
19 | 19 | { |
20 | 20 | public function hint(): string; |
21 | 21 | |
22 | + /** |
|
23 | + * @return \OAuth2Framework\Component\Core\AccessToken\AccessToken|null |
|
24 | + */ |
|
22 | 25 | public function find(string $token): ?Token; |
23 | 26 | |
24 | 27 | public function introspect(Token $token): array; |
@@ -21,8 +21,12 @@ |
||
21 | 21 | * @param AuthorizationCodeId $authorizationCodeId the authorization code string for which to fetch data |
22 | 22 | * |
23 | 23 | * @see http://tools.ietf.org/html/rfc6749#section-4.1 |
24 | + * @return AuthorizationCode|null |
|
24 | 25 | */ |
25 | 26 | public function find(AuthorizationCodeId $authorizationCodeId): ?AuthorizationCode; |
26 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
27 | 31 | public function save(AuthorizationCode $authorizationCode): void; |
28 | 32 | } |
@@ -15,5 +15,8 @@ |
||
15 | 15 | |
16 | 16 | interface AccessTokenHandler |
17 | 17 | { |
18 | + /** |
|
19 | + * @return AccessToken|null |
|
20 | + */ |
|
18 | 21 | public function find(AccessTokenId $token): ?AccessToken; |
19 | 22 | } |
@@ -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); |