| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function generate(array $classDefinitionMap): FactoryRegistryGeneratorInterface |
||
| 22 | { |
||
| 23 | $file = $this->getFile(); |
||
| 24 | $fileContent = $this->twig->render($this->getTemplateName(), [ |
||
| 25 | 'classDefinitionMap' => $classDefinitionMap |
||
| 26 | ]); |
||
| 27 | |||
| 28 | $this->createDirectories($this->targetDirectory); |
||
| 29 | |||
| 30 | $this->filesystem->writeToFile($this->targetDirectory . $file, $fileContent); |
||
| 31 | |||
| 32 | return $this; |
||
| 33 | } |
||
| 51 |