| Total Complexity | 2 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class MakeMigrationCommand extends Command |
||
| 9 | { |
||
| 10 | use HasTablesClassesMap, HasSuffixOption; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * The name and signature of the console command. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $signature = 'geonames:make:migration |
||
| 18 | {type : Migration type. } |
||
| 19 | {--suffix= : Suffix used for specify country if need. } |
||
| 20 | '; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The console command description. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $description = 'Publish specific migrations.'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The filesystem instance. |
||
| 31 | * |
||
| 32 | * @var Filesystem |
||
| 33 | */ |
||
| 34 | protected Filesystem $files; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Create a new command instance. |
||
| 38 | * |
||
| 39 | * @param Filesystem $files |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | 18 | public function __construct(Filesystem $files) |
|
| 48 | 18 | } |
|
| 49 | |||
| 50 | 11 | public function handle() |
|
| 58 |