1 | <?php |
||
15 | class ManagerFactory |
||
16 | { |
||
17 | /** @var HelperFactory */ |
||
18 | private $helperFactory; |
||
19 | |||
20 | /** @var CachingStrategyFactory */ |
||
21 | private $cachingStrategyFactory; |
||
22 | |||
23 | /** @var WorkbookRelationshipsManager */ |
||
24 | private $cachedWorkbookRelationshipsManager; |
||
25 | |||
26 | /** |
||
27 | * @param HelperFactory $helperFactory Factory to create helpers |
||
28 | * @param CachingStrategyFactory $cachingStrategyFactory Factory to create shared strings caching strategies |
||
29 | */ |
||
30 | 50 | public function __construct(HelperFactory $helperFactory, CachingStrategyFactory $cachingStrategyFactory) |
|
35 | |||
36 | /** |
||
37 | * @param string $filePath Path of the XLSX file being read |
||
38 | * @param string $tempFolder Temporary folder where the temporary files to store shared strings will be stored |
||
39 | * @param EntityFactory $entityFactory Factory to create entities |
||
40 | * @return SharedStringsManager |
||
41 | */ |
||
42 | 40 | public function createSharedStringsManager($filePath, $tempFolder, $entityFactory) |
|
55 | |||
56 | /** |
||
57 | * @param string $filePath Path of the XLSX file being read |
||
58 | * @param EntityFactory $entityFactory Factory to create entities |
||
59 | * @return WorkbookRelationshipsManager |
||
60 | */ |
||
61 | 40 | private function createWorkbookRelationshipsManager($filePath, $entityFactory) |
|
69 | |||
70 | /** |
||
71 | * @param string $filePath Path of the XLSX file being read |
||
72 | * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
73 | * @param \Box\Spout\Reader\XLSX\Manager\SharedStringsManager $sharedStringsManager Manages shared strings |
||
74 | * @param EntityFactory $entityFactory Factory to create entities |
||
75 | * @return SheetManager |
||
76 | */ |
||
77 | 39 | public function createSheetManager($filePath, $optionsManager, $sharedStringsManager, $entityFactory) |
|
83 | |||
84 | /** |
||
85 | * @param string $filePath Path of the XLSX file being read |
||
86 | * @param EntityFactory $entityFactory Factory to create entities |
||
87 | * @return StyleManager |
||
88 | */ |
||
89 | 38 | public function createStyleManager($filePath, $entityFactory) |
|
95 | } |
||
96 |