1 | <?php |
||
10 | class CleanupCommand extends BaseCommand |
||
11 | { |
||
12 | /** @var string */ |
||
13 | protected $signature = 'backup:clean {--disable-notifications}'; |
||
14 | |||
15 | /** @var string */ |
||
16 | protected $description = 'Remove all backups older than specified number of days in config.'; |
||
17 | |||
18 | public function handle() |
||
44 | } |
||
45 |
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: