1 | <?php |
||
20 | class EntityFactory implements EntityFactoryInterface |
||
21 | { |
||
22 | /** @var HelperFactory */ |
||
23 | private $helperFactory; |
||
24 | |||
25 | /** |
||
26 | * @param HelperFactory $helperFactory |
||
27 | */ |
||
28 | 33 | public function __construct(HelperFactory $helperFactory) |
|
32 | |||
33 | /** |
||
34 | * @param string $filePath Path of the file to be read |
||
35 | * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
36 | * @return SheetIterator |
||
37 | */ |
||
38 | 30 | 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 \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
49 | * @return Sheet |
||
50 | */ |
||
51 | 28 | public function createSheet($xmlReader, $sheetIndex, $sheetName, $isSheetActive, $optionsManager) |
|
55 | |||
56 | /** |
||
57 | * @param XMLReader $xmlReader XML Reader |
||
58 | * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
59 | * @return RowIterator |
||
60 | */ |
||
61 | 28 | public function createRowIterator($xmlReader, $optionsManager) |
|
65 | |||
66 | /** |
||
67 | * @return XMLReader |
||
68 | */ |
||
69 | 30 | public function createXMLReader() |
|
73 | |||
74 | /** |
||
75 | * @param $xmlReader |
||
76 | * @return XMLProcessor |
||
77 | */ |
||
78 | 28 | public function createXMLProcessor($xmlReader) |
|
82 | |||
83 | /** |
||
84 | * @return \ZipArchive |
||
85 | */ |
||
86 | 30 | public function createZipArchive() |
|
90 | } |
||
91 |