| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class CodeFileWriter |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Saves the generated code into files. |
||
| 16 | * |
||
| 17 | * @param CodeFile[] $files the code files to be saved |
||
| 18 | * @param string[] $results this parameter receives a value from this method indicating the log messages |
||
| 19 | * generated while saving the code files. |
||
| 20 | * |
||
| 21 | * @throws InvalidConfigException |
||
| 22 | * @throws ReflectionException |
||
| 23 | * |
||
| 24 | * @return bool whether files are successfully saved without any error. |
||
| 25 | */ |
||
| 26 | public function write(AbstractGeneratorCommand $command, array $files, array $answers, array &$results): bool |
||
| 55 |