1 | <?php |
||
20 | abstract class Request extends LaravelFrameworkRequest |
||
21 | { |
||
22 | |||
23 | use HashIdTrait; |
||
24 | use RequestTrait; |
||
25 | |||
26 | /** |
||
27 | * Overriding this function to throw a custom |
||
28 | * exception instead of the default Laravel exception. |
||
29 | * |
||
30 | * @param \Illuminate\Contracts\Validation\Validator $validator |
||
31 | * |
||
32 | * @return mixed|void |
||
33 | */ |
||
34 | public function failedValidation(Validator $validator) |
||
38 | |||
39 | /** |
||
40 | * Overriding this function to modify the any user input before |
||
41 | * applying the validation rules. |
||
42 | * |
||
43 | * @return array |
||
44 | */ |
||
45 | public function all() |
||
56 | |||
57 | /** |
||
58 | * @param array $requestData |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | private function decode(Array $requestData) |
||
81 | |||
82 | } |
||
83 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.