1 | <?php |
||
26 | class AuthMutation extends AbstractMutation |
||
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 | * AuthorisationQuery constructor. |
||
42 | * @param array $attributes |
||
43 | * @param TokenAuth $tokenAuth |
||
44 | */ |
||
45 | public function __construct(array $attributes = [], TokenAuth $tokenAuth) |
||
51 | |||
52 | /** |
||
53 | * @return ObjectType |
||
54 | */ |
||
55 | public function type(): ObjectType |
||
59 | |||
60 | /** |
||
61 | * @return array |
||
62 | */ |
||
63 | public function args(): array |
||
80 | |||
81 | /** |
||
82 | * @return array |
||
83 | */ |
||
84 | public function rules(): array |
||
93 | |||
94 | /** |
||
95 | * @param $root |
||
96 | * @param array $args |
||
97 | * @return array |
||
98 | * @throws AccessDeniedHttpException |
||
99 | */ |
||
100 | public function resolve($root, $args) |
||
114 | |||
115 | /** |
||
116 | * @param array $args |
||
117 | * @return array |
||
118 | */ |
||
119 | private function getEmailAndPassword(array $args = []): array |
||
126 | |||
127 | |||
128 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.