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