1 | <?php |
||
19 | abstract class GeneratorCommand extends Command |
||
20 | { |
||
21 | /** |
||
22 | * The filesystem instance. |
||
23 | * |
||
24 | * @var \Illuminate\Filesystem\Filesystem |
||
25 | */ |
||
26 | protected $files; |
||
27 | |||
28 | /** |
||
29 | * The type of class being generated. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $type; |
||
34 | |||
35 | /** |
||
36 | * Create a new controller creator command instance. |
||
37 | * |
||
38 | * @param \Illuminate\Filesystem\Filesystem $files |
||
39 | */ |
||
40 | public function __construct(Filesystem $files) |
||
46 | |||
47 | /** |
||
48 | * Execute the console command. |
||
49 | * |
||
50 | * @return bool|null |
||
51 | */ |
||
52 | public function handle() |
||
76 | |||
77 | /** |
||
78 | * Get the stub file for the generator. |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | abstract protected function getStub(); |
||
83 | |||
84 | /** |
||
85 | * Parse the class name and format according to the root namespace. |
||
86 | * |
||
87 | * @param string $name |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | protected function qualifyClass($name) |
||
107 | |||
108 | /** |
||
109 | * Get the default namespace for the class. |
||
110 | * |
||
111 | * @param string $rootNamespace |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | protected function getDefaultNamespace($rootNamespace) |
||
119 | |||
120 | /** |
||
121 | * Determine if the class already exists. |
||
122 | * |
||
123 | * @param string $rawName |
||
124 | * |
||
125 | * @return bool |
||
126 | */ |
||
127 | protected function alreadyExists($rawName) |
||
131 | |||
132 | /** |
||
133 | * Get the destination class path. |
||
134 | * |
||
135 | * @param string $name |
||
136 | * |
||
137 | * @return string |
||
138 | */ |
||
139 | protected function getPath($name) |
||
145 | |||
146 | /** |
||
147 | * Build the directory for the class if necessary. |
||
148 | * |
||
149 | * @param string $path |
||
150 | * |
||
151 | * @return string |
||
152 | */ |
||
153 | protected function makeDirectory($path) |
||
161 | |||
162 | /** |
||
163 | * Build the class with the given name. |
||
164 | * |
||
165 | * @param string $name |
||
166 | * |
||
167 | * @return string |
||
168 | */ |
||
169 | protected function buildClass($name) |
||
175 | |||
176 | /** |
||
177 | * Replace the namespace for the given stub. |
||
178 | * |
||
179 | * @param string $stub |
||
180 | * @param string $name |
||
181 | * |
||
182 | * @return $this |
||
183 | */ |
||
184 | protected function replaceNamespace(&$stub, $name) |
||
194 | |||
195 | /** |
||
196 | * Get the full namespace for a given class, without the class name. |
||
197 | * |
||
198 | * @param string $name |
||
199 | * |
||
200 | * @return string |
||
201 | */ |
||
202 | protected function getNamespace($name) |
||
206 | |||
207 | /** |
||
208 | * Replace the class name for the given stub. |
||
209 | * |
||
210 | * @param string $stub |
||
211 | * @param string $name |
||
212 | * |
||
213 | * @return string |
||
214 | */ |
||
215 | protected function replaceClass($stub, $name) |
||
221 | |||
222 | /** |
||
223 | * Get the desired class name from the input. |
||
224 | * |
||
225 | * @return string |
||
226 | */ |
||
227 | protected function getNameInput() |
||
231 | |||
232 | /** |
||
233 | * Get the root namespace for the class. |
||
234 | * |
||
235 | * @return string |
||
236 | */ |
||
237 | protected function rootNamespace() |
||
241 | |||
242 | /** |
||
243 | * Get the console command arguments. |
||
244 | * |
||
245 | * @return array |
||
246 | */ |
||
247 | protected function getArguments() |
||
253 | } |
||
254 |
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.