Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 90% |
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\Generator\Exception\GenerateDirectoryNotWriteable |
||
23 | */ |
||
24 | 2 | public function __construct(string $path) |
|
33 | } |
||
34 | 2 | } |
|
35 | |||
36 | /** |
||
37 | * @param $filename |
||
38 | * @param $content |
||
39 | */ |
||
40 | 2 | public function writeToFile($filename, $content): void |
|
47 | } |