1 | <?php |
||
15 | class DataTablesMakeCommand extends GeneratorCommand |
||
16 | { |
||
17 | /** |
||
18 | * The name and signature of the console command. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $signature = 'datatables:make |
||
23 | {name : The name of the datatable.} |
||
24 | {--model : The name of the model to be used.} |
||
25 | {--model-namespace= : The namespace of the model to be used.} |
||
26 | {--action= : The path of the action view.} |
||
27 | {--columns= : The columns of the datatable.}'; |
||
28 | |||
29 | /** |
||
30 | * The console command description. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $description = 'Create a new DataTable service class.'; |
||
35 | |||
36 | /** |
||
37 | * The type of class being generated. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $type = 'DataTable'; |
||
42 | |||
43 | /** |
||
44 | * Build the class with the given name. |
||
45 | * |
||
46 | * @param string $name |
||
47 | * @return string |
||
48 | */ |
||
49 | protected function buildClass($name) |
||
59 | |||
60 | /** |
||
61 | * Replace model name. |
||
62 | * |
||
63 | * @param string $stub |
||
64 | * @return this |
||
65 | */ |
||
66 | protected function replaceModel(&$stub) |
||
74 | |||
75 | /** |
||
76 | * Get model name to use. |
||
77 | */ |
||
78 | protected function getModel() |
||
89 | |||
90 | /** |
||
91 | * Replace columns. |
||
92 | * |
||
93 | * @param string $stub |
||
94 | * @return $this |
||
95 | */ |
||
96 | protected function replaceColumns(&$stub) |
||
104 | |||
105 | /** |
||
106 | * Get the columns to be used. |
||
107 | * |
||
108 | * @return string |
||
109 | */ |
||
110 | protected function getColumns() |
||
118 | |||
119 | /** |
||
120 | * Parse array from definition |
||
121 | * |
||
122 | * @param string $definition |
||
123 | * @param string $delimiter |
||
124 | * @param int $indentation |
||
125 | * @return string |
||
126 | */ |
||
127 | protected function parseArray($definition, $delimiter = ',', $indentation = 12) |
||
131 | |||
132 | /** |
||
133 | * Replace the action. |
||
134 | * |
||
135 | * @param string $stub |
||
136 | * @return this |
||
137 | */ |
||
138 | protected function replaceAction(&$stub) |
||
146 | |||
147 | /** |
||
148 | * Set the action view to be used. |
||
149 | * |
||
150 | * @return string |
||
151 | */ |
||
152 | protected function getAction() |
||
157 | |||
158 | /** |
||
159 | * Replace model import. |
||
160 | * |
||
161 | * @param string $stub |
||
162 | * @return $this |
||
163 | */ |
||
164 | protected function replaceModelImport(&$stub) |
||
172 | |||
173 | /** |
||
174 | * Get the stub file for the generator. |
||
175 | * |
||
176 | * @return string |
||
177 | */ |
||
178 | protected function getStub() |
||
185 | |||
186 | /** |
||
187 | * Replace the filename. |
||
188 | * |
||
189 | * @param string $stub |
||
190 | * @return string |
||
191 | */ |
||
192 | protected function replaceFilename(&$stub) |
||
200 | |||
201 | /** |
||
202 | * Get the console command options. |
||
203 | * |
||
204 | * @return array |
||
205 | */ |
||
206 | protected function getOptions() |
||
214 | |||
215 | /** |
||
216 | * Parse the name and format according to the root namespace. |
||
217 | * |
||
218 | * @param string $name |
||
219 | * @return string |
||
220 | */ |
||
221 | protected function qualifyClass($name) |
||
239 | |||
240 | /** |
||
241 | * Get the default namespace for the class. |
||
242 | * |
||
243 | * @param string $rootNamespace |
||
244 | * @return string |
||
245 | */ |
||
246 | protected function getDefaultNamespace($rootNamespace) |
||
250 | } |
||
251 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.