1 | <?php |
||
6 | class JigInstaller extends Command |
||
7 | { |
||
8 | /** |
||
9 | * The name and signature of the console command. |
||
10 | * |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $signature = 'jig:install'; |
||
14 | |||
15 | /** |
||
16 | * The console command description. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $description = 'This is an automatic installer for the Jetstream Inertia Generator Package. It will install packages, publish all assets and schedule or run migrations for you.'; |
||
21 | |||
22 | /** |
||
23 | * Create a new command instance. |
||
24 | * |
||
25 | * @return void |
||
|
|||
26 | */ |
||
27 | public function __construct() |
||
31 | |||
32 | /** |
||
33 | * Execute the console command. |
||
34 | * |
||
35 | * @return int |
||
36 | */ |
||
37 | public function handle() |
||
50 | } |
||
51 |
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.