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 |
||
28 | |||
29 | /** |
||
30 | * Get the validation rules that apply to the request. |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function rules(): array |
||
38 | } |
||
39 |
If you implement
__call
and 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
__call
is implemented by a parent class and only the child class knows which methods exist: