| 1 | <?php |
||
| 10 | class EmailVerificationRequest extends FormRequest |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Determine if the user is authorized to make this request. |
||
| 14 | * |
||
| 15 | * @throws \Cortex\Foundation\Exceptions\GenericException |
||
| 16 | * |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | public function authorize(): bool |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the validation rules that apply to the request. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function rules(): array |
||
| 40 | } |
||
| 41 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: