1 | <?php |
||
17 | class InternalEntityFactory implements InternalEntityFactoryInterface |
||
18 | { |
||
19 | /** @var HelperFactory */ |
||
20 | private $helperFactory; |
||
21 | |||
22 | /** |
||
23 | * @param HelperFactory $helperFactory |
||
24 | */ |
||
25 | 34 | public function __construct(HelperFactory $helperFactory) |
|
29 | |||
30 | /** |
||
31 | * @param string $filePath Path of the file to be read |
||
32 | * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
33 | * @return SheetIterator |
||
34 | */ |
||
35 | 31 | public function createSheetIterator($filePath, $optionsManager) |
|
42 | |||
43 | /** |
||
44 | * @param XMLReader $xmlReader XML Reader |
||
45 | * @param int $sheetIndex Index of the sheet, based on order in the workbook (zero-based) |
||
46 | * @param string $sheetName Name of the sheet |
||
47 | * @param bool $isSheetActive Whether the sheet was defined as active |
||
48 | * @param bool $isSheetVisible Whether the sheet is visible |
||
49 | * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
50 | * @return Sheet |
||
51 | */ |
||
52 | 29 | public function createSheet($xmlReader, $sheetIndex, $sheetName, $isSheetActive, $isSheetVisible, $optionsManager) |
|
58 | |||
59 | /** |
||
60 | * @param XMLReader $xmlReader XML Reader |
||
61 | * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
62 | * @return RowIterator |
||
63 | */ |
||
64 | 29 | private function createRowIterator($xmlReader, $optionsManager) |
|
72 | |||
73 | /** |
||
74 | * @return XMLReader |
||
75 | */ |
||
76 | 31 | public function createXMLReader() |
|
80 | |||
81 | /** |
||
82 | * @param $xmlReader |
||
83 | * @return XMLProcessor |
||
84 | */ |
||
85 | 29 | private function createXMLProcessor($xmlReader) |
|
89 | |||
90 | /** |
||
91 | * @return \ZipArchive |
||
92 | */ |
||
93 | 31 | public function createZipArchive() |
|
97 | } |
||
98 |