1 | <?php |
||
19 | class InternalEntityFactory implements InternalEntityFactoryInterface |
||
20 | { |
||
21 | /** @var HelperFactory */ |
||
22 | private $helperFactory; |
||
23 | |||
24 | /** @var ManagerFactory */ |
||
25 | private $managerFactory; |
||
26 | |||
27 | /** |
||
28 | * @param HelperFactory $helperFactory |
||
29 | * @param ManagerFactory $managerFactory |
||
30 | */ |
||
31 | 34 | public function __construct(HelperFactory $helperFactory, ManagerFactory $managerFactory) |
|
36 | |||
37 | /** |
||
38 | * @param string $filePath Path of the file to be read |
||
39 | * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
40 | * @return SheetIterator |
||
41 | */ |
||
42 | 31 | public function createSheetIterator($filePath, $optionsManager) |
|
49 | |||
50 | /** |
||
51 | * @param XMLReader $xmlReader XML Reader |
||
52 | * @param int $sheetIndex Index of the sheet, based on order in the workbook (zero-based) |
||
53 | * @param string $sheetName Name of the sheet |
||
54 | * @param bool $isSheetActive Whether the sheet was defined as active |
||
55 | * @param bool $isSheetVisible Whether the sheet is visible |
||
56 | * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
57 | * @return Sheet |
||
58 | */ |
||
59 | 29 | public function createSheet($xmlReader, $sheetIndex, $sheetName, $isSheetActive, $isSheetVisible, $optionsManager) |
|
65 | |||
66 | /** |
||
67 | * @param XMLReader $xmlReader XML Reader |
||
68 | * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
69 | * @return RowIterator |
||
70 | */ |
||
71 | 29 | private function createRowIterator($xmlReader, $optionsManager) |
|
80 | |||
81 | /** |
||
82 | * @param Cell[] $cells |
||
83 | * @return Row |
||
84 | */ |
||
85 | 26 | public function createRow(array $cells) |
|
89 | |||
90 | /** |
||
91 | * @param mixed $cellValue |
||
92 | * @return Cell |
||
93 | */ |
||
94 | 26 | public function createCell($cellValue) |
|
98 | |||
99 | /** |
||
100 | * @return XMLReader |
||
101 | */ |
||
102 | 31 | public function createXMLReader() |
|
106 | |||
107 | /** |
||
108 | * @param $xmlReader |
||
109 | * @return XMLProcessor |
||
110 | */ |
||
111 | 29 | private function createXMLProcessor($xmlReader) |
|
115 | |||
116 | /** |
||
117 | * @return \ZipArchive |
||
118 | */ |
||
119 | 31 | public function createZipArchive() |
|
123 | } |
||
124 |