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