1 | <?php |
||
31 | class CleanServiceBackup extends Command |
||
32 | { |
||
33 | /** |
||
34 | * The name and signature of the console command. |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $signature = 'pterodactyl:cleanservices'; |
||
39 | |||
40 | /** |
||
41 | * The console command description. |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $description = 'Cleans .bak files assocaited with service backups whene editing files through the panel.'; |
||
46 | |||
47 | /** |
||
48 | * Create a new command instance. |
||
49 | * |
||
50 | * @return void |
||
|
|||
51 | */ |
||
52 | public function __construct() |
||
56 | |||
57 | /** |
||
58 | * Execute the console command. |
||
59 | * |
||
60 | * @return mixed |
||
61 | */ |
||
62 | public function handle() |
||
74 | } |
||
75 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.