@@ -26,5 +26,8 @@ |
||
26 | 26 | */ |
27 | 27 | public function find(AuthorizationCodeId $authorizationCodeId): ?AuthorizationCode; |
28 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
29 | 32 | public function save(AuthorizationCode $authorizationCode): void; |
30 | 33 | } |
@@ -267,6 +267,7 @@ discard block |
||
267 | 267 | } |
268 | 268 | |
269 | 269 | /** |
270 | + * @param string $value |
|
270 | 271 | * @return Authorization |
271 | 272 | */ |
272 | 273 | public function withResponseHeader(string $responseHeader, $value): self |
@@ -356,6 +357,7 @@ discard block |
||
356 | 357 | } |
357 | 358 | |
358 | 359 | /** |
360 | + * @param boolean $data |
|
359 | 361 | * @return Authorization |
360 | 362 | */ |
361 | 363 | public function withData(string $key, $data): self |
@@ -14,8 +14,8 @@ |
||
14 | 14 | namespace OAuth2Framework\Component\BearerTokenType; |
15 | 15 | |
16 | 16 | use OAuth2Framework\Component\Core\AccessToken\AccessToken; |
17 | -use OAuth2Framework\Component\Core\Token\Token; |
|
18 | 17 | use OAuth2Framework\Component\Core\TokenType\TokenType; |
18 | +use OAuth2Framework\Component\Core\Token\Token; |
|
19 | 19 | use OAuth2Framework\Component\Core\Util\RequestBodyParser; |
20 | 20 | use Psr\Http\Message\ServerRequestInterface; |
21 | 21 |
@@ -55,6 +55,9 @@ |
||
55 | 55 | return $handler->handle($request); |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param null|Client $client |
|
60 | + */ |
|
58 | 61 | private function checkClient(?Client $client): void |
59 | 62 | { |
60 | 63 | if (null === $client || $client->isDeleted()) { |
@@ -15,6 +15,9 @@ |
||
15 | 15 | |
16 | 16 | interface InitialAccessTokenRepository |
17 | 17 | { |
18 | + /** |
|
19 | + * @return void |
|
20 | + */ |
|
18 | 21 | public function save(InitialAccessToken $initialAccessToken); |
19 | 22 | |
20 | 23 | /** |
@@ -17,6 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | /** |
19 | 19 | * Save the client. |
20 | + * @return void |
|
20 | 21 | */ |
21 | 22 | public function save(Client $client); |
22 | 23 |
@@ -17,8 +17,14 @@ |
||
17 | 17 | |
18 | 18 | interface UserAccount extends ResourceOwner |
19 | 19 | { |
20 | + /** |
|
21 | + * @return integer|null |
|
22 | + */ |
|
20 | 23 | public function getLastLoginAt(): ?int; |
21 | 24 | |
25 | + /** |
|
26 | + * @return integer|null |
|
27 | + */ |
|
22 | 28 | public function getLastUpdateAt(): ?int; |
23 | 29 | |
24 | 30 | public function getUserAccountId(): UserAccountId; |
@@ -19,6 +19,7 @@ |
||
19 | 19 | * Get the user account with the specified User Account Name. |
20 | 20 | * |
21 | 21 | * @param string $username User Account Name |
22 | + * @return string |
|
22 | 23 | */ |
23 | 24 | public function findOneByUsername(string $username): ?UserAccount; |
24 | 25 |
@@ -15,5 +15,8 @@ |
||
15 | 15 | |
16 | 16 | interface ResourceRepository |
17 | 17 | { |
18 | + /** |
|
19 | + * @return ResourceObject|null |
|
20 | + */ |
|
18 | 21 | public function find(ResourceId $resourceId): ?ResourceObject; |
19 | 22 | } |