1 | <?php declare(strict_types=1); |
||
37 | trait PasswordGrantTrait |
||
38 | { |
||
39 | /** |
||
40 | * @var PasswordIntegrationInterface |
||
41 | */ |
||
42 | 6 | private $passIntegration; |
|
43 | |||
44 | 6 | /** |
|
45 | * @return PasswordIntegrationInterface |
||
46 | */ |
||
47 | protected function passGetIntegration(): PasswordIntegrationInterface |
||
51 | |||
52 | 44 | /** |
|
53 | * @param PasswordIntegrationInterface $passIntegration |
||
54 | 44 | * |
|
55 | * @return void |
||
56 | */ |
||
57 | public function passSetIntegration(PasswordIntegrationInterface $passIntegration): void |
||
61 | |||
62 | 4 | /** |
|
63 | * @param string[] $parameters |
||
64 | 4 | * |
|
65 | * @return string|null |
||
66 | */ |
||
67 | protected function passGetUserName(array $parameters): ?string |
||
71 | |||
72 | 3 | /** |
|
73 | * @param string[] $parameters |
||
74 | 3 | * |
|
75 | * @return string|null |
||
76 | */ |
||
77 | protected function passGetPassword(array $parameters): ?string |
||
81 | |||
82 | 5 | /** |
|
83 | * @param string[] $parameters |
||
84 | 5 | * |
|
85 | * @return string[]|null |
||
|
|||
86 | 5 | */ |
|
87 | protected function passGetScope(array $parameters): ?array |
||
93 | |||
94 | /** |
||
95 | 7 | * @param string[] $parameters |
|
96 | * @param ClientInterface|null $determinedClient |
||
97 | * |
||
98 | 7 | * @return ResponseInterface |
|
99 | 6 | */ |
|
100 | 6 | protected function passIssueToken(array $parameters, ClientInterface $determinedClient = null): ResponseInterface |
|
138 | |||
139 | /** |
||
140 | 5 | * @param array $parameters |
|
141 | * @param string $name |
||
142 | 5 | * |
|
143 | 5 | * @return null|string |
|
144 | */ |
||
145 | private function passReadStringValue(array $parameters, string $name): ?string |
||
150 | } |
||
151 |
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>
.