@@ -81,6 +81,9 @@ discard block |
||
| 81 | 81 | return $this->engine->render($template, $data); |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $data |
|
| 86 | + */ |
|
| 84 | 87 | protected function write($data) |
| 85 | 88 | { |
| 86 | 89 | $destination = $this->composer->getClassPath($this->data['name']); |
@@ -93,6 +96,9 @@ discard block |
||
| 93 | 96 | return $this->external->write($destination, $data); |
| 94 | 97 | } |
| 95 | 98 | |
| 99 | + /** |
|
| 100 | + * @param string $stub |
|
| 101 | + */ |
|
| 96 | 102 | public function generate($stub, $data) |
| 97 | 103 | { |
| 98 | 104 | $template = $this->prepare($stub, array_merge($this->data, $data)); |