1 | <?php |
||
16 | class EntityFactory |
||
17 | { |
||
18 | /** |
||
19 | * This creates an instance of the appropriate writer, given the type of the file to be read |
||
20 | * |
||
21 | * @param string $writerType Type of the writer to instantiate |
||
22 | * @throws \Box\Spout\Common\Exception\UnsupportedTypeException |
||
23 | * @return WriterInterface |
||
24 | */ |
||
25 | 94 | public static function createWriter($writerType) |
|
29 | |||
30 | /** |
||
31 | * @param Cell[] $cells |
||
32 | * @param Style|null $rowStyle |
||
33 | * @return Row |
||
34 | */ |
||
35 | public static function createRow(array $cells = [], Style $rowStyle = null) |
||
42 | |||
43 | /** |
||
44 | * @param array $cellValues |
||
45 | * @param Style|null $rowStyle |
||
46 | * @return Row |
||
47 | */ |
||
48 | 75 | public static function createRowFromArray(array $cellValues = [], Style $rowStyle = null) |
|
59 | |||
60 | /** |
||
61 | * @param mixed $cellValue |
||
62 | * @param Style|null $cellStyle |
||
63 | * @return Cell |
||
64 | */ |
||
65 | public static function createCell($cellValue, Style $cellStyle = null) |
||
69 | } |
||
70 |