1 | <?php |
||
11 | class CleanupCommand extends BaseCommand |
||
12 | { |
||
13 | /** @var string */ |
||
14 | protected $signature = 'backup:clean {--disable-notifications}'; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $description = 'Remove all backups older than specified number of days in config.'; |
||
18 | |||
19 | /** @var \Spatie\Backup\Tasks\Cleanup\CleanupStrategy */ |
||
20 | protected $strategy; |
||
21 | |||
22 | public function __construct(CleanupStrategy $strategy) |
||
28 | |||
29 | public function handle() |
||
53 | } |
||
54 |
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: