1 | <?php |
||
30 | class ShowVersion extends Command |
||
31 | { |
||
32 | /** |
||
33 | * The name and signature of the console command. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $signature = 'pterodactyl:version'; |
||
38 | |||
39 | /** |
||
40 | * The console command description. |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $description = 'Display current panel version.'; |
||
45 | |||
46 | /** |
||
47 | * Create a new command instance. |
||
48 | * |
||
49 | * @return void |
||
|
|||
50 | */ |
||
51 | public function __construct() |
||
55 | |||
56 | /** |
||
57 | * Execute the console command. |
||
58 | * |
||
59 | * @return mixed |
||
60 | */ |
||
61 | public function handle() |
||
65 | } |
||
66 |
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.