1 | <?php |
||
26 | class AuthQuery extends AbstractQuery |
||
27 | { |
||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $attributes = [ |
||
32 | 'name' => 'auth', |
||
33 | ]; |
||
34 | |||
35 | /** |
||
36 | * @var TokenAuth |
||
37 | */ |
||
38 | private $tokenAuth; |
||
39 | |||
40 | /** |
||
41 | * @var StatefulGuard|Guard |
||
42 | */ |
||
43 | private $guard; |
||
44 | |||
45 | /** |
||
46 | * AuthMutation constructor. |
||
47 | * @param array $attributes |
||
48 | * @param Guard $guard |
||
49 | * @param TokenAuth $tokenAuth |
||
50 | */ |
||
51 | public function __construct(array $attributes = [], Guard $guard, TokenAuth $tokenAuth) |
||
58 | |||
59 | /** |
||
60 | * @return ObjectType |
||
61 | */ |
||
62 | public function type(): ObjectType |
||
66 | |||
67 | /** |
||
68 | * @return array |
||
69 | */ |
||
70 | public function queryArguments(): array |
||
87 | |||
88 | /** |
||
89 | * @return array |
||
90 | */ |
||
91 | public function rules(): array |
||
100 | |||
101 | /** |
||
102 | * @param $root |
||
103 | * @param array $args |
||
104 | * @return array |
||
105 | * @throws AccessDeniedHttpException |
||
106 | */ |
||
107 | public function resolve($root, $args) |
||
123 | |||
124 | /** |
||
125 | * @param array $args |
||
126 | * @return array |
||
127 | */ |
||
128 | private function getEmailAndPassword(array $args = []): array |
||
135 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.