1 | <?php declare(strict_types=1); |
||
35 | trait ClientGrantTrait |
||
36 | { |
||
37 | /** |
||
38 | * @var ClientIntegrationInterface |
||
39 | */ |
||
40 | 3 | private $clientIntegration; |
|
41 | |||
42 | 3 | /** |
|
43 | * @return ClientIntegrationInterface |
||
44 | */ |
||
45 | protected function clientGetIntegration(): ClientIntegrationInterface |
||
49 | |||
50 | 44 | /** |
|
51 | * @param ClientIntegrationInterface $clientIntegration |
||
52 | 44 | * |
|
53 | * @return void |
||
54 | */ |
||
55 | public function clientSetIntegration(ClientIntegrationInterface $clientIntegration): void |
||
59 | |||
60 | 3 | /** |
|
61 | * @param string[] $parameters |
||
62 | 3 | * |
|
63 | * @return string[]|null |
||
|
|||
64 | 3 | */ |
|
65 | protected function clientGetScope(array $parameters): ?array |
||
71 | |||
72 | /** |
||
73 | 4 | * @param string[] $parameters |
|
74 | * @param ClientInterface $determinedClient |
||
75 | 4 | * |
|
76 | 1 | * @return ResponseInterface |
|
77 | */ |
||
78 | protected function clientIssueToken(array $parameters, ClientInterface $determinedClient): ResponseInterface |
||
100 | |||
101 | /** |
||
102 | 3 | * @param array $parameters |
|
103 | * @param string $name |
||
104 | 3 | * |
|
105 | 3 | * @return null|string |
|
106 | */ |
||
107 | private function clientReadStringValue(array $parameters, string $name): ?string |
||
112 | } |
||
113 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.If the return type contains the type array, this check recommends the use of a more specific type like
String[]
orarray<String>
.