1 | <?php |
||
19 | class HelperFactory extends \Box\Spout\Common\Creator\HelperFactory |
||
20 | { |
||
21 | /** @var CachingStrategyFactory */ |
||
22 | private $cachingStrategyFactory; |
||
23 | |||
24 | /** |
||
25 | * @param CachingStrategyFactory $cachingStrategyFactory Factory to create shared strings caching strategies |
||
26 | */ |
||
27 | 85 | public function __construct(CachingStrategyFactory $cachingStrategyFactory) |
|
31 | |||
32 | /** |
||
33 | * @param string $filePath Path of the XLSX file being read |
||
34 | * @param string $tempFolder Temporary folder where the temporary files to store shared strings will be stored |
||
35 | * @param EntityFactory $entityFactory Factory to create entities |
||
36 | * @return SharedStringsHelper |
||
37 | */ |
||
38 | 35 | public function createSharedStringsHelper($filePath, $tempFolder, $entityFactory) |
|
42 | |||
43 | /** |
||
44 | * @param string $filePath Path of the XLSX file being read |
||
45 | * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager |
||
46 | * @param \Box\Spout\Reader\XLSX\Helper\SharedStringsHelper Helper to work with shared strings |
||
47 | * @param \Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper |
||
48 | * @param EntityFactory $entityFactory Factory to create entities |
||
49 | * @return SheetHelper |
||
50 | */ |
||
51 | 34 | public function createSheetHelper($filePath, $optionsManager, $sharedStringsHelper, $globalFunctionsHelper, $entityFactory) |
|
56 | |||
57 | /** |
||
58 | * @param string $filePath Path of the XLSX file being read |
||
59 | * @param EntityFactory $entityFactory Factory to create entities |
||
60 | * @return StyleHelper |
||
61 | */ |
||
62 | 33 | public function createStyleHelper($filePath, $entityFactory) |
|
66 | |||
67 | /** |
||
68 | * @param SharedStringsHelper $sharedStringsHelper Helper to work with shared strings |
||
69 | * @param StyleHelper $styleHelper Helper to work with styles |
||
70 | * @param bool $shouldFormatDates Whether date/time values should be returned as PHP objects or be formatted as strings |
||
71 | * @return CellValueFormatter |
||
72 | */ |
||
73 | 33 | public function createCellValueFormatter($sharedStringsHelper, $styleHelper, $shouldFormatDates) |
|
78 | |||
79 | /** |
||
80 | * @return Escaper\XLSX |
||
81 | */ |
||
82 | 34 | public function createStringsEscaper() |
|
87 | } |
||
88 |