1 | <?php |
||
30 | class AddLocation extends Command |
||
31 | { |
||
32 | protected $data = []; |
||
33 | |||
34 | /** |
||
35 | * The name and signature of the console command. |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $signature = 'pterodactyl:location |
||
40 | {--short= : The shortcode name of this location (ex. us1).} |
||
41 | {--long= : A longer description of this location.}'; |
||
42 | |||
43 | /** |
||
44 | * The console command description. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $description = 'Creates a new location on the system via the CLI.'; |
||
49 | |||
50 | /** |
||
51 | * Create a new command instance. |
||
52 | * |
||
53 | * @return void |
||
|
|||
54 | */ |
||
55 | public function __construct() |
||
59 | |||
60 | /** |
||
61 | * Execute the console command. |
||
62 | * |
||
63 | * @return mixed |
||
64 | */ |
||
65 | public function handle() |
||
75 | } |
||
76 |
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.