Total Complexity | 2 |
Total Lines | 9 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
12 | final class OutputWriter |
||
13 | { |
||
14 | 18 | public function __construct(private readonly SmartFileSystem $fileSystem) |
|
|
|||
15 | { |
||
16 | } |
||
17 | |||
18 | 13 | public function save(OutputContent $contents, OutputFilePath $filePath): void |
|
19 | { |
||
20 | 13 | $this->fileSystem->dumpFile($filePath->value(), $contents->value()); |
|
21 | } |
||
23 |