1 | <?php |
||
10 | class BackupCommand extends BaseCommand |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'backup:run {--only-db} {--only-files}'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $description = 'Run the backup.'; |
||
21 | |||
22 | public function handle() |
||
48 | |||
49 | protected function guardAgainstInvalidOptions() |
||
55 | } |
||
56 |
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: