| 1 | <?php |
||
| 9 | class WidgetMakeCommand extends GeneratorCommand |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The console command name. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected $name = 'make:widget'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The console command description. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $description = 'Create a new widget'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The type of class being generated. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $type = 'Widget'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get the stub file for the generator. |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | protected function getStub(): string |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the default namespace for the class. |
||
| 44 | * |
||
| 45 | * @param string $rootNamespace |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | protected function getDefaultNamespace($rootNamespace): string |
||
| 53 | } |
||
| 54 |