| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class FileContentGenerator implements FileContentGeneratorInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | 15 | * @param array<string,string> $templateByFilenameMap |
|
| 16 | */ |
||
| 17 | public function __construct( |
||
| 18 | private readonly FileContentIoInterface $fileContentIo, |
||
| 19 | 15 | private array $templateByFilenameMap, |
|
| 20 | ) { |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | 15 | * @return string path result where the file was generated |
|
| 25 | */ |
||
| 26 | 15 | public function generate(CommandArguments $commandArguments, string $filename, bool $withShortName = false): string |
|
| 47 | } |
||
| 48 | } |
||
| 49 |