| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 92.86% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class FileWriter implements FileWriterInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $generatedPath; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * FileWriter constructor. |
||
| 19 | * |
||
| 20 | * @param string $path |
||
| 21 | * |
||
| 22 | * @throws \Xervice\DataProvider\Business\Exception\GenerateDirectoryNotWriteable |
||
| 23 | */ |
||
| 24 | 10 | public function __construct(string $path) |
|
| 33 | } |
||
| 34 | 10 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $filename |
||
| 38 | * @param string $content |
||
| 39 | */ |
||
| 40 | 10 | public function writeToFile(string $filename, string $content): void |
|
| 54 |