@@ -169,6 +169,11 @@ discard block |
||
169 | 169 | $this->generateFile($path, $stub, $namespace); |
170 | 170 | } |
171 | 171 | |
172 | + /** |
|
173 | + * @param string $path |
|
174 | + * @param string $stub |
|
175 | + * @param null|string $namespace |
|
176 | + */ |
|
172 | 177 | public function generateFile($path, $stub, $namespace) |
173 | 178 | { |
174 | 179 | if ( ! $this->filesystem->exists($path) || $this->confirm($path.' already exists! Continue?')) { |
@@ -198,6 +203,9 @@ discard block |
||
198 | 203 | return $path.'/Stubs/base/'.$stub.'.stub'; |
199 | 204 | } |
200 | 205 | |
206 | + /** |
|
207 | + * @param string $stub |
|
208 | + */ |
|
201 | 209 | public function getStub($stub) |
202 | 210 | { |
203 | 211 | return $this->filesystem->get($this->getPath($stub)); |