1 | <?php |
||
17 | class XlsxWriter extends FileWriter |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | * @Assert\NotBlank(groups={"Execution"}) |
||
22 | */ |
||
23 | protected $filePath = '/tmp/export_%datetime%.xlsx'; |
||
24 | |||
25 | /** @var ExcelBuilderFactory */ |
||
26 | protected $builderFactory; |
||
27 | |||
28 | /** @var string */ |
||
29 | protected $builderClass; |
||
30 | |||
31 | /** @var array */ |
||
32 | protected $builderOptions; |
||
33 | |||
34 | /** @var ExcelBuilderInterface */ |
||
35 | protected $builder; |
||
36 | |||
37 | /** |
||
38 | * @param ExcelBuilderFactory $builderFactory |
||
39 | * @param string $builderClass |
||
40 | * @param array $builderOptions |
||
41 | */ |
||
42 | public function __construct(ExcelBuilderFactory $builderFactory, $builderClass, array $builderOptions = array()) |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function initialize() |
||
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | public function write(array $data) |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function flush() |
||
75 | } |
||
76 |