1 | <?php |
||
8 | class DeleteRequest extends FormRequest |
||
9 | { |
||
10 | /** |
||
11 | * Determine if the user is authorized to make this request. |
||
12 | * |
||
13 | * @return bool |
||
14 | */ |
||
15 | public function authorize() |
||
19 | |||
20 | /** |
||
21 | * Get the validation rules that apply to the request. |
||
22 | * |
||
23 | * @return array |
||
24 | */ |
||
25 | public function rules() |
||
29 | |||
30 | /** |
||
31 | * Error to return if deleting is not allowed. |
||
32 | * |
||
33 | * @throws AuthorizationException |
||
34 | */ |
||
35 | public function failedAuthorization() |
||
39 | } |
||
40 |
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.