Total Complexity | 4 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class FileWriter implements WriterInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var \SprykerEco\Zed\Econda\Business\Exporter\Writer\File\Adapter\AdapterInterface |
||
17 | */ |
||
18 | protected $fileWriterAdapter; |
||
19 | |||
20 | /** |
||
21 | * @param \SprykerEco\Zed\Econda\Business\Exporter\Writer\File\Adapter\AdapterInterface $fileWriterAdapter |
||
22 | */ |
||
23 | public function __construct(AdapterInterface $fileWriterAdapter) |
||
24 | { |
||
25 | $this->fileWriterAdapter = $fileWriterAdapter; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param string $fileName |
||
30 | * |
||
31 | * @return $this |
||
32 | */ |
||
33 | public function setFileName($fileName) |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param string $directory |
||
42 | * |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function setFolderPath($directory) |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @param array $dataSet |
||
54 | * @param string $type |
||
55 | * |
||
56 | * @return bool |
||
57 | */ |
||
58 | public function write(array $dataSet, $type = '') |
||
61 | } |
||
62 | } |
||
63 |