| 1 | <?php |
||
| 8 | class ApiKey |
||
| 9 | { |
||
| 10 | public $setting; |
||
| 11 | |||
| 12 | public function __construct() |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Handle an incoming request. |
||
| 20 | * |
||
| 21 | * @param \Illuminate\Http\Request $request |
||
| 22 | * @param \Closure $next |
||
| 23 | * |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | public function handle($request, Closure $next) |
||
| 50 | |||
| 51 | public function test($v1, $v2) |
||
| 59 | } |
||
| 60 |
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: