| 1 | <?php |
||
| 14 | class JobTitleRequest extends Request |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Get the validation rules that apply to the request. |
||
| 18 | * |
||
| 19 | * @return array |
||
| 20 | * |
||
| 21 | * @author Bertrand Kintanar <[email protected]> |
||
| 22 | */ |
||
| 23 | 12 | public function rules() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Determine if the user is authorized to make this request. |
||
| 34 | * |
||
| 35 | * @return bool |
||
| 36 | * |
||
| 37 | * @author Bertrand Kintanar <[email protected]> |
||
| 38 | */ |
||
| 39 | 12 | public function authorize() |
|
| 63 | } |
||
| 64 |
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@propertyannotation 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.