cachingStrategyFactory = $cachingStrategyFactory; } /** * @param string $filePath Path of the XLSX file being read * @param string $tempFolder Temporary folder where the temporary files to store shared strings will be stored * @param EntityFactory $entityFactory Factory to create entities * @return SharedStringsHelper */ public function createSharedStringsHelper($filePath, $tempFolder, $entityFactory) { return new SharedStringsHelper($filePath, $tempFolder, $entityFactory, $this, $this->cachingStrategyFactory); } /** * @param string $filePath Path of the XLSX file being read * @param \Box\Spout\Common\Manager\OptionsManagerInterface $optionsManager Reader's options manager * @param \Box\Spout\Reader\XLSX\Helper\SharedStringsHelper Helper to work with shared strings * @param \Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper * @param EntityFactory $entityFactory Factory to create entities * @return SheetHelper */ public function createSheetHelper($filePath, $optionsManager, $sharedStringsHelper, $globalFunctionsHelper, $entityFactory) { $escaper = $this->createStringsEscaper(); return new SheetHelper($filePath, $optionsManager, $sharedStringsHelper, $globalFunctionsHelper, $escaper, $entityFactory); } /** * @param string $filePath Path of the XLSX file being read * @param EntityFactory $entityFactory Factory to create entities * @return StyleHelper */ public function createStyleHelper($filePath, $entityFactory) { return new StyleHelper($filePath, $entityFactory); } /** * @param SharedStringsHelper $sharedStringsHelper Helper to work with shared strings * @param StyleHelper $styleHelper Helper to work with styles * @param bool $shouldFormatDates Whether date/time values should be returned as PHP objects or be formatted as strings * @return CellValueFormatter */ public function createCellValueFormatter($sharedStringsHelper, $styleHelper, $shouldFormatDates) { $escaper = $this->createStringsEscaper(); return new CellValueFormatter($sharedStringsHelper, $styleHelper, $shouldFormatDates, $escaper); } /** * @return Escaper\XLSX */ public function createStringsEscaper() { /** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */ return new Escaper\XLSX(); } }