1 | <?php |
||
23 | class AuthorisationMutation extends AbstractMutation |
||
24 | { |
||
25 | |||
26 | protected $attributes = [ |
||
27 | 'name' => 'authorization' |
||
28 | ]; |
||
29 | /** |
||
30 | * @var Guard |
||
31 | */ |
||
32 | private $jwt; |
||
33 | |||
34 | /** |
||
35 | * @var Encrypter |
||
36 | */ |
||
37 | private $encrypter; |
||
38 | /** |
||
39 | * @var TokenAuth |
||
40 | */ |
||
41 | private $guard; |
||
42 | |||
43 | public function __construct($attributes = [], TokenAuth $guard) |
||
48 | |||
49 | /** |
||
50 | * @return ObjectType |
||
51 | */ |
||
52 | public function type(): ObjectType |
||
56 | |||
57 | /** |
||
58 | * @return array |
||
59 | */ |
||
60 | public function args():array |
||
69 | |||
70 | /** |
||
71 | * @return array |
||
72 | */ |
||
73 | public function rules():array |
||
80 | |||
81 | /** |
||
82 | * @return array |
||
83 | */ |
||
84 | public function messages():array |
||
91 | |||
92 | /** |
||
93 | * @param \Illuminate\Validation\Validator $validator |
||
94 | * @param $args |
||
95 | */ |
||
96 | public function afterValidation($validator, $args) |
||
112 | |||
113 | /** |
||
114 | * @param $root |
||
115 | * @param $args |
||
116 | * @return User|mixed |
||
117 | */ |
||
118 | public function resolve($root, $args) |
||
124 | |||
125 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.