| 1 | <?php |
||
| 7 | class CommandMaker extends ConsoleMakeCommand |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The console command description. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $description = 'Create a new command'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Get the desired class name from the input. |
||
| 18 | * |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | 1 | protected function getNameInput() |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Get the stub file for the generator. |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 1 | protected function getStub() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Get the default namespace for the class. |
||
| 38 | * |
||
| 39 | * @param string $rootNamespace |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | 1 | protected function getDefaultNamespace($rootNamespace) |
|
| 47 | } |
||
| 48 |