| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | abstract class AbstractFileWriter |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $fileName; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $filePath |
||
| 19 | * @param array $data |
||
| 20 | * @param bool $append |
||
| 21 | * |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | abstract public function write($filePath, $data, $append = false); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $fileName |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | protected function createDirectory($fileName) |
||
| 41 |