1 | <?php |
||
9 | class SimpleExcelWriter |
||
10 | { |
||
11 | /** @var \Box\Spout\Writer\WriterInterface */ |
||
12 | private $writer; |
||
13 | |||
14 | private $processHeader = true; |
||
15 | |||
16 | private $processingFirstRow = true; |
||
17 | |||
18 | private $numberOfRows = 0; |
||
19 | |||
20 | public static function create(string $file) |
||
24 | |||
25 | public function __construct(string $path) |
||
31 | |||
32 | public function getWriter(): WriterInterface |
||
36 | |||
37 | public function getNumberOfRows(): int |
||
41 | |||
42 | public function noHeaderRow() |
||
48 | |||
49 | /** |
||
50 | * @param \Box\Spout\Common\Entity\Row|array $row |
||
51 | * @param \Box\Spout\Common\Entity\Style\Style|null $style |
||
52 | */ |
||
53 | public function addRow($row, Style $style = null) |
||
70 | |||
71 | protected function writeHeaderFromRow(array $row) |
||
80 | |||
81 | public function close() |
||
85 | |||
86 | public function __destruct() |
||
90 | } |
||
91 |