1 | <?php |
||
9 | class DataTablesMakeCommand extends GeneratorCommand |
||
10 | { |
||
11 | /** |
||
12 | * The name and signature of the console command. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $signature = 'datatables:make |
||
17 | {name : The name of the datatable.} |
||
18 | {--model : The name of the model to be used.} |
||
19 | {--model-namespace= : The namespace of the model to be used.} |
||
20 | {--action= : The path of the action view.} |
||
21 | {--columns= : The columns of the datatable.}'; |
||
22 | |||
23 | /** |
||
24 | * The console command description. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $description = 'Create a new DataTable service class.'; |
||
29 | |||
30 | /** |
||
31 | * The type of class being generated. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $type = 'DataTable'; |
||
36 | |||
37 | /** |
||
38 | * Build the class with the given name. |
||
39 | * |
||
40 | * @param string $name |
||
41 | * @return string |
||
42 | */ |
||
43 | protected function buildClass($name) |
||
53 | |||
54 | /** |
||
55 | * Replace model name. |
||
56 | * |
||
57 | * @param string $stub |
||
58 | * @return \Yajra\DataTables\Generators\DataTablesMakeCommand |
||
59 | */ |
||
60 | protected function replaceModel(&$stub) |
||
68 | |||
69 | /** |
||
70 | * Get model name to use. |
||
71 | */ |
||
72 | protected function getModel() |
||
83 | |||
84 | /** |
||
85 | * Replace columns. |
||
86 | * |
||
87 | * @param string $stub |
||
88 | * @return $this |
||
89 | */ |
||
90 | protected function replaceColumns(&$stub) |
||
98 | |||
99 | /** |
||
100 | * Get the columns to be used. |
||
101 | * |
||
102 | * @return string |
||
103 | */ |
||
104 | protected function getColumns() |
||
112 | |||
113 | /** |
||
114 | * Parse array from definition |
||
115 | * |
||
116 | * @param string $definition |
||
117 | * @param string $delimiter |
||
118 | * @param int $indentation |
||
119 | * @return string |
||
120 | */ |
||
121 | protected function parseArray($definition, $delimiter = ',', $indentation = 12) |
||
125 | |||
126 | /** |
||
127 | * Replace the action. |
||
128 | * |
||
129 | * @param string $stub |
||
130 | * @return \Yajra\DataTables\Generators\DataTablesMakeCommand |
||
131 | */ |
||
132 | protected function replaceAction(&$stub) |
||
140 | |||
141 | /** |
||
142 | * Set the action view to be used. |
||
143 | * |
||
144 | * @return string |
||
145 | */ |
||
146 | protected function getAction() |
||
151 | |||
152 | /** |
||
153 | * Replace model import. |
||
154 | * |
||
155 | * @param string $stub |
||
156 | * @return $this |
||
157 | */ |
||
158 | protected function replaceModelImport(&$stub) |
||
166 | |||
167 | /** |
||
168 | * Get the stub file for the generator. |
||
169 | * |
||
170 | * @return string |
||
171 | */ |
||
172 | protected function getStub() |
||
179 | |||
180 | /** |
||
181 | * Replace the filename. |
||
182 | * |
||
183 | * @param string $stub |
||
184 | * @return string |
||
185 | */ |
||
186 | protected function replaceFilename(&$stub) |
||
194 | |||
195 | /** |
||
196 | * Get the console command options. |
||
197 | * |
||
198 | * @return array |
||
199 | */ |
||
200 | protected function getOptions() |
||
208 | |||
209 | /** |
||
210 | * Parse the name and format according to the root namespace. |
||
211 | * |
||
212 | * @param string $name |
||
213 | * @return string |
||
214 | */ |
||
215 | protected function qualifyClass($name) |
||
233 | |||
234 | /** |
||
235 | * Get the default namespace for the class. |
||
236 | * |
||
237 | * @param string $rootNamespace |
||
238 | * @return string |
||
239 | */ |
||
240 | protected function getDefaultNamespace($rootNamespace) |
||
244 | } |
||
245 |
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.