| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function populateStub(): string |
||
| 23 | { |
||
| 24 | $stub = $this->stub; |
||
| 25 | $stub = str_replace('{{Namespace}}', config('generators.model_namespace'), $stub); |
||
| 26 | $stub = str_replace('{{ClassName}}', $this->getClassName(), $stub); |
||
| 27 | $stub = str_replace('{{factoryClass}}', config('generators.model_namespace')."\\{$this->model->name()}", $stub); |
||
| 28 | |||
| 29 | return $stub; |
||
| 30 | } |
||
| 37 |