1 | <?php |
||
8 | class MigrationMakeCommand extends BaseCommand |
||
9 | { |
||
10 | /** |
||
11 | * The console command singature. |
||
12 | * |
||
13 | * @var stringphp |
||
14 | */ |
||
15 | protected $signature = 'make:migration |
||
16 | {name : The name of the class} |
||
17 | {--create= : The table to be created} |
||
18 | {--update= : The table to be updated} |
||
19 | '; |
||
20 | |||
21 | /** |
||
22 | * The console command description. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $description = 'Create a new migration class'; |
||
27 | |||
28 | /** |
||
29 | * The type of class being generated. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $type = 'Migration'; |
||
34 | |||
35 | /** |
||
36 | * The constructor. |
||
37 | */ |
||
38 | 2 | public function __construct() |
|
44 | |||
45 | /** |
||
46 | * Get the default namespace for the class. |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | protected function getDefaultNamespace() |
||
54 | |||
55 | /** |
||
56 | * Get the stub file for the generator. |
||
57 | * |
||
58 | * @return string |
||
59 | */ |
||
60 | protected function getStub() |
||
70 | |||
71 | /** |
||
72 | * Generate file. |
||
73 | * |
||
74 | * @param FileGenerator $generator |
||
75 | * @param string $path |
||
76 | * @param string $fqcn |
||
77 | * |
||
78 | * @return bool |
||
79 | */ |
||
80 | protected function generateFile(FileGenerator $generator, $path, $fqcn) |
||
90 | } |
||
91 |