1 | <?php |
||
8 | class InstallCommand extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'teamwork:install'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Install all of the Teamwork resources'; |
||
23 | |||
24 | /** |
||
25 | * Execute the console command. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | public function handle() |
||
41 | |||
42 | /** |
||
43 | * Register the Teamwork service provider in the application configuration file. |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | protected function registerTeamworkServiceProvider() |
||
67 | } |
||
68 |
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: