| 1 | <?php |
||
| 14 | class DbReCreateCommand extends Command |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The name and signature of the console command. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $signature = 'db:recreate |
||
| 22 | {--dry-run} |
||
| 23 | '; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The console command description. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $description = 'Re-creates the database.'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Create a new command instance. |
||
| 34 | * |
||
| 35 | * @return void |
||
|
|
|||
| 36 | */ |
||
| 37 | public function __construct() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Execute the console command. |
||
| 44 | * |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | public function handle(GrammarFactory $grammars) |
||
| 67 | |||
| 68 | private function makeConnector(array $configs, bool $dryRun = false): Connector |
||
| 76 | } |
||
| 77 |
Adding a
@returnannotation 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.