| 1 | <?php |
||
| 10 | class PhoneVerificationRequest extends FormRequest |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Determine if the user is authorized to make this request. |
||
| 14 | * |
||
| 15 | * @throws \Rinvex\Fort\Exceptions\GenericException |
||
| 16 | * |
||
| 17 | * @return bool |
||
| 18 | */ |
||
| 19 | public function authorize(): bool |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get the validation rules that apply to the request. |
||
| 50 | * |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | public function rules(): array |
||
| 57 | } |
||
| 58 |
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: