| 1 | <?php |
||
| 8 | class ViewModelMakeCommand extends GeneratorCommand |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The console command name. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $name = 'make:view-model'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The console command description. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $description = 'Create a new ViewModel class'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The type of class being generated. |
||
| 26 | * |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $type = 'ViewModel'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Execute the console command. |
||
| 33 | * |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | public function handle() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get the stub file for the generator. |
||
| 45 | * |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | protected function getStub() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get the console command options. |
||
| 55 | * |
||
| 56 | * @return array |
||
| 57 | */ |
||
| 58 | protected function getOptions(): array |
||
| 64 | } |
||
| 65 |