Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class FileDumper implements DumperFileInterface |
||
6 | { |
||
7 | use FileDumperTrait; |
||
8 | |||
9 | /** |
||
10 | * {@inheritdoc} |
||
11 | */ |
||
12 | public function dump($string) |
||
13 | { |
||
14 | if ($this->handle === null) { |
||
15 | $this->openFile(); |
||
16 | } |
||
17 | |||
18 | fwrite($this->handle, $string); |
||
19 | } |
||
20 | |||
21 | protected function openFile() |
||
27 | } |
||
28 | } |
||
30 |