Box\Spout\Writer\XLSX\Internal\Worksheet::__construct PHP Method

__construct() public method

public __construct ( Sheet $externalSheet, string $worksheetFilesFolder, Box\Spout\Writer\XLSX\Helper\SharedStringsHelper $sharedStringsHelper, $styleHelper, boolean $shouldUseInlineStrings )
$externalSheet Box\Spout\Writer\Common\Sheet The associated "external" sheet
$worksheetFilesFolder string Temporary folder where the files to create the XLSX will be stored
$sharedStringsHelper Box\Spout\Writer\XLSX\Helper\SharedStringsHelper Helper for shared strings
$shouldUseInlineStrings boolean Whether inline or shared strings should be used
    public function __construct($externalSheet, $worksheetFilesFolder, $sharedStringsHelper, $styleHelper, $shouldUseInlineStrings)
    {
        $this->externalSheet = $externalSheet;
        $this->sharedStringsHelper = $sharedStringsHelper;
        $this->styleHelper = $styleHelper;
        $this->shouldUseInlineStrings = $shouldUseInlineStrings;
        /** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */
        $this->stringsEscaper = \Box\Spout\Common\Escaper\XLSX::getInstance();
        $this->stringHelper = new StringHelper();
        $this->worksheetFilePath = $worksheetFilesFolder . '/' . strtolower($this->externalSheet->getName()) . '.xml';
        $this->startSheet();
    }