@@ -25,6 +25,9 @@ |
||
25 | 25 | private $expiresAt; |
26 | 26 | private $userAccountId; |
27 | 27 | |
28 | + /** |
|
29 | + * @param \DateTimeImmutable|null $expiresAt |
|
30 | + */ |
|
28 | 31 | public function __construct(InitialAccessTokenId $initialAccessTokenId, UserAccountId $userAccountId, ?\DateTimeImmutable $expiresAt) |
29 | 32 | { |
30 | 33 | $this->initialAccessTokenId = $initialAccessTokenId; |
@@ -25,6 +25,9 @@ |
||
25 | 25 | private $parameters; |
26 | 26 | private $userAccountId; |
27 | 27 | |
28 | + /** |
|
29 | + * @param UserAccountId $userAccountId |
|
30 | + */ |
|
28 | 31 | public function __construct(ClientId $clientId, DataBag $parameters, ?UserAccountId $userAccountId) |
29 | 32 | { |
30 | 33 | $this->clientId = $clientId; |
@@ -56,6 +56,10 @@ |
||
56 | 56 | private $jkuFactory = null; |
57 | 57 | private $authorizationCodeRepository = null; |
58 | 58 | |
59 | + /** |
|
60 | + * @param null|JKUFactory $jkuFactory |
|
61 | + * @param null|AuthorizationCodeRepository $authorizationCodeRepository |
|
62 | + */ |
|
59 | 63 | public function __construct(string $issuer, UserInfo $userinfo, int $lifetime, Client $client, UserAccount $userAccount, string $redirectUri, ?JKUFactory $jkuFactory, ?AuthorizationCodeRepository $authorizationCodeRepository) |
60 | 64 | { |
61 | 65 | $this->issuer = $issuer; |
@@ -52,6 +52,9 @@ |
||
52 | 52 | $this->claimSourceManager = $claimSourceManager; |
53 | 53 | } |
54 | 54 | |
55 | + /** |
|
56 | + * @param string $claimsLocales |
|
57 | + */ |
|
55 | 58 | public function getUserinfo(Client $client, UserAccount $userAccount, string $redirectUri, array $requestedClaims, string $scope, ?string $claimsLocales): array |
56 | 59 | { |
57 | 60 | $requestedClaims = \array_merge( |
@@ -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 | } |
@@ -19,6 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | /** |
21 | 21 | * @param bool $isFullyAuthenticated |
22 | + * @return null|UserAccount |
|
22 | 23 | */ |
23 | 24 | public function find(?bool &$isFullyAuthenticated = null): ?UserAccount; |
24 | 25 | } |
@@ -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 | } |
@@ -213,6 +213,9 @@ discard block |
||
213 | 213 | return \array_key_exists($param, $this->getResponseParameters()); |
214 | 214 | } |
215 | 215 | |
216 | + /** |
|
217 | + * @param string $value |
|
218 | + */ |
|
216 | 219 | public function setResponseHeader(string $responseHeader, $value): void |
217 | 220 | { |
218 | 221 | $this->responseHeaders[$responseHeader] = $value; |
@@ -287,6 +290,9 @@ discard block |
||
287 | 290 | return $this->data[$key]; |
288 | 291 | } |
289 | 292 | |
293 | + /** |
|
294 | + * @param boolean $data |
|
295 | + */ |
|
290 | 296 | public function setData(string $key, $data): void |
291 | 297 | { |
292 | 298 | $this->data[$key] = $data; |