1 | <?php |
||
17 | class EntityFactory |
||
18 | { |
||
19 | /** @var ManagerFactory */ |
||
20 | private $managerFactory; |
||
21 | |||
22 | /** |
||
23 | * EntityFactory constructor. |
||
24 | * |
||
25 | * @param ManagerFactory $managerFactory |
||
26 | */ |
||
27 | 107 | public function __construct(ManagerFactory $managerFactory) |
|
31 | |||
32 | /** |
||
33 | * @return Workbook |
||
34 | */ |
||
35 | 78 | public function createWorkbook() |
|
39 | |||
40 | /** |
||
41 | * @param string $worksheetFilePath |
||
42 | * @param Sheet $externalSheet |
||
43 | * @return Worksheet |
||
44 | */ |
||
45 | 78 | public function createWorksheet($worksheetFilePath, Sheet $externalSheet) |
|
49 | |||
50 | /** |
||
51 | * @param int $sheetIndex Index of the sheet, based on order in the workbook (zero-based) |
||
52 | * @param string $associatedWorkbookId ID of the sheet's associated workbook |
||
53 | * @return Sheet |
||
54 | */ |
||
55 | 78 | public function createSheet($sheetIndex, $associatedWorkbookId) |
|
60 | |||
61 | /** |
||
62 | * @param array $cells |
||
63 | * @param Style|null $style |
||
64 | * @return Row |
||
65 | */ |
||
66 | 1 | public function createRow(array $cells, Style $style = null) |
|
71 | } |