1 | <?php |
||
10 | class SimpleExcelWriter |
||
11 | { |
||
12 | use Macroable; |
||
13 | |||
14 | /** @var \Box\Spout\Writer\WriterInterface */ |
||
15 | private $writer; |
||
16 | |||
17 | private $processHeader = true; |
||
18 | |||
19 | private $processingFirstRow = true; |
||
20 | |||
21 | public static function create(string $file) |
||
25 | |||
26 | public function __construct(string $path) |
||
32 | |||
33 | public function getWriter(): WriterInterface |
||
37 | |||
38 | public function noHeaderRow() |
||
44 | |||
45 | /** |
||
46 | * @param \Box\Spout\Common\Entity\Row|array $row |
||
47 | * @param \Box\Spout\Common\Entity\Style\Style|null $style |
||
48 | */ |
||
49 | public function addRow($row, Style $style = null) |
||
65 | |||
66 | protected function writeHeaderFromRow(array $row) |
||
74 | |||
75 | public function close() |
||
79 | |||
80 | public function __destruct() |
||
84 | } |
||
85 |