1 | <?php namespace Modules\Translation\Exporters; |
||
7 | class TranslationsExporter |
||
8 | { |
||
9 | /** |
||
10 | * @var TranslationsService |
||
11 | */ |
||
12 | private $translations; |
||
13 | private $filename = 'translations_'; |
||
14 | |||
15 | public function __construct(TranslationsService $translations) |
||
19 | |||
20 | public function export() |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getFileName() |
||
36 | { |
||
37 | return $this->filename . time() . '.csv'; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | private function formatData() |
||
55 | } |
||
56 |