1 | <?php |
||
9 | class PhoneVerificationVerifyRequest extends PhoneVerificationRequest |
||
10 | { |
||
11 | /** |
||
12 | * Determine if the user is authorized to make this request. |
||
13 | * |
||
14 | * @throws \Cortex\Foundation\Exceptions\GenericException |
||
15 | * |
||
16 | * @return bool |
||
17 | */ |
||
18 | public function authorize(): bool |
||
33 | |||
34 | /** |
||
35 | * Get the validation rules that apply to the request. |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function rules(): array |
||
43 | } |
||
44 |
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: