| Total Complexity | 2 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 14 | final class SaveFile |
||
| 15 | { |
||
| 16 | 16 | public function __construct( |
|
| 17 | private readonly OutputWriter $writer, |
||
|
|
|||
| 18 | private readonly ProgressDisplay $display |
||
| 19 | ) { |
||
| 20 | } |
||
| 21 | |||
| 22 | 13 | public function saveTo(OutputContent $content, OutputFilePath $path): void |
|
| 23 | { |
||
| 24 | 13 | $this->display->savingResult(); |
|
| 25 | 13 | $this->writer->save($content, $path); |
|
| 26 | } |
||
| 28 |