1 | <?php |
||
12 | class ResourceMakeCommand extends GeneratorCommand |
||
13 | { |
||
14 | use ModuleCommandTrait; |
||
15 | |||
16 | protected $argumentName = 'name'; |
||
17 | protected $name = 'module:make-resource'; |
||
18 | protected $description = 'Create a new resource class for the specified module.'; |
||
19 | |||
20 | public function getDefaultNamespace() : string |
||
24 | |||
25 | /** |
||
26 | * Get the console command arguments. |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | protected function getArguments() |
||
37 | |||
38 | protected function getOptions() |
||
44 | |||
45 | /** |
||
46 | * @return mixed |
||
47 | */ |
||
48 | protected function getTemplateContents() |
||
57 | |||
58 | /** |
||
59 | * @return mixed |
||
60 | */ |
||
61 | protected function getDestinationFilePath() |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | private function getFileName() |
||
77 | |||
78 | /** |
||
79 | * Determine if the command is generating a resource collection. |
||
80 | * |
||
81 | * @return bool |
||
82 | */ |
||
83 | protected function collection() : bool |
||
88 | |||
89 | /** |
||
90 | * @return string |
||
91 | */ |
||
92 | protected function getStubName(): string |
||
100 | } |
||
101 |