1 | <?php |
||
13 | class MakeQueryFiltersCommand extends GeneratorCommand |
||
14 | { |
||
15 | /** |
||
16 | * The console command name. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $name = 'make:query-filters'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Create a new query filters class'; |
||
28 | |||
29 | /** |
||
30 | * The type of class being generated. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $type = 'Query filters'; |
||
35 | |||
36 | /** |
||
37 | * Get the stub file for the generator. |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | 9 | protected function getStub() |
|
45 | |||
46 | /** |
||
47 | * Get the default namespace for the class. |
||
48 | * |
||
49 | * @param string $rootNamespace |
||
50 | * @return string |
||
51 | */ |
||
52 | 9 | protected function getDefaultNamespace($rootNamespace) |
|
65 | |||
66 | /** |
||
67 | * Build the class with the given name. |
||
68 | * |
||
69 | * @param string $name |
||
70 | * @return string |
||
71 | */ |
||
72 | 9 | protected function buildClass($name) |
|
78 | |||
79 | /** |
||
80 | * Replace filters for the given stub |
||
81 | * |
||
82 | * @param string $stub |
||
83 | * @return string |
||
84 | */ |
||
85 | 9 | protected function replaceFilters($stub) |
|
107 | |||
108 | /** |
||
109 | * Get the console command arguments. |
||
110 | * |
||
111 | * @return array |
||
112 | */ |
||
113 | 9 | protected function getArguments() |
|
120 | } |
||
121 |