1 | <?php |
||
9 | class DataTablesEditorCommand extends GeneratorCommand |
||
10 | { |
||
11 | /** |
||
12 | * The name and signature of the console command. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $signature = 'datatables:editor |
||
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 | |||
21 | /** |
||
22 | * The console command description. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $description = 'Create a new DataTables Editor class.'; |
||
27 | |||
28 | /** |
||
29 | * The type of class being generated. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $type = 'DataTablesEditor'; |
||
34 | |||
35 | /** |
||
36 | * Build the class with the given name. |
||
37 | * |
||
38 | * @param string $name |
||
39 | * @return string |
||
40 | */ |
||
41 | protected function buildClass($name) |
||
47 | |||
48 | /** |
||
49 | * Replace model name. |
||
50 | * |
||
51 | * @param string $stub |
||
52 | * @return string |
||
53 | */ |
||
54 | protected function replaceModel(&$stub) |
||
62 | |||
63 | /** |
||
64 | * Get model name to use. |
||
65 | */ |
||
66 | protected function getModel() |
||
77 | |||
78 | /** |
||
79 | * Replace model import. |
||
80 | * |
||
81 | * @param string $stub |
||
82 | * @return $this |
||
83 | */ |
||
84 | protected function replaceModelImport(&$stub) |
||
92 | |||
93 | /** |
||
94 | * Get the stub file for the generator. |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | protected function getStub() |
||
102 | |||
103 | /** |
||
104 | * Replace the filename. |
||
105 | * |
||
106 | * @param string $stub |
||
107 | * @return string |
||
108 | */ |
||
109 | protected function replaceFilename(&$stub) |
||
117 | |||
118 | /** |
||
119 | * Parse the name and format according to the root namespace. |
||
120 | * |
||
121 | * @param string $name |
||
122 | * @return string |
||
123 | */ |
||
124 | protected function qualifyClass($name) |
||
142 | |||
143 | /** |
||
144 | * Get the default namespace for the class. |
||
145 | * |
||
146 | * @param string $rootNamespace |
||
147 | * @return string |
||
148 | */ |
||
149 | protected function getDefaultNamespace($rootNamespace) |
||
153 | } |
||
154 |
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.