1 | <?php |
||
7 | class MakeBackpackCrudRequest extends GeneratorCommand |
||
8 | { |
||
9 | /** |
||
10 | * The console command name. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $name = 'make:crud-request'; |
||
15 | |||
16 | /** |
||
17 | * The name and signature of the console command. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $signature = 'make:crud-request {name}'; |
||
22 | |||
23 | /** |
||
24 | * The console command description. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $description = 'Generate a Backpack CRUD request'; |
||
29 | |||
30 | /** |
||
31 | * The type of class being generated. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $type = 'Request'; |
||
36 | |||
37 | /** |
||
38 | * Get the destination class path. |
||
39 | * |
||
40 | * @param string $name |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | protected function getPath($name) |
||
50 | |||
51 | /** |
||
52 | * Get the stub file for the generator. |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | protected function getStub() |
||
60 | |||
61 | /** |
||
62 | * Get the default namespace for the class. |
||
63 | * |
||
64 | * @param string $rootNamespace |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | protected function getDefaultNamespace($rootNamespace) |
||
72 | |||
73 | /** |
||
74 | * Get the console command options. |
||
75 | * |
||
76 | * @return array |
||
77 | */ |
||
78 | protected function getOptions() |
||
84 | } |
||
85 |