1 | <?php |
||
25 | class AuthorisationQuery extends AbstractQuery |
||
26 | { |
||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $attributes = [ |
||
31 | 'name' => 'authorization', |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * @var TokenAuth |
||
36 | */ |
||
37 | private $tokenAuth; |
||
38 | |||
39 | /** |
||
40 | * AuthorisationQuery constructor. |
||
41 | * @param array $attributes |
||
42 | * @param TokenAuth $tokenAuth |
||
43 | */ |
||
44 | public function __construct(array $attributes = [], TokenAuth $tokenAuth) |
||
50 | |||
51 | /** |
||
52 | * @return ObjectType |
||
53 | */ |
||
54 | public function type(): ObjectType |
||
58 | |||
59 | /** |
||
60 | * @return array |
||
61 | */ |
||
62 | public function queryArguments(): array |
||
75 | |||
76 | /** |
||
77 | * @return array |
||
78 | */ |
||
79 | public function rules(): array |
||
88 | |||
89 | /** |
||
90 | * @return array |
||
91 | */ |
||
92 | public function messages(): array |
||
99 | |||
100 | /** |
||
101 | * @param Validator $validator |
||
102 | * @param array $args |
||
103 | * @return \Generator|null |
||
104 | */ |
||
105 | public function validate(Validator $validator, array $args = []): ?\Generator |
||
117 | |||
118 | /** |
||
119 | * @param array $args |
||
120 | * @return array |
||
121 | */ |
||
122 | private function getEmailAndPassword(array $args = []): array |
||
129 | |||
130 | /** |
||
131 | * @param $root |
||
132 | * @param $args |
||
133 | * @return array |
||
134 | * @throws \Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException |
||
135 | */ |
||
136 | public function resolve($root, $args) |
||
143 | |||
144 | /** |
||
145 | * @param array $args |
||
146 | * @return User|Authenticatable |
||
147 | */ |
||
148 | private function getUser(array $args): User |
||
158 | |||
159 | } |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.