Box\Spout\Writer\ODS\Internal\Worksheet::__construct PHP Метод

__construct() публичный Метод

public __construct ( Sheet $externalSheet, string $worksheetFilesFolder )
$externalSheet Box\Spout\Writer\Common\Sheet The associated "external" sheet
$worksheetFilesFolder string Temporary folder where the files to create the ODS will be stored
    public function __construct($externalSheet, $worksheetFilesFolder)
    {
        $this->externalSheet = $externalSheet;
        /** @noinspection PhpUnnecessaryFullyQualifiedNameInspection */
        $this->stringsEscaper = \Box\Spout\Common\Escaper\ODS::getInstance();
        $this->worksheetFilePath = $worksheetFilesFolder . '/sheet' . $externalSheet->getIndex() . '.xml';
        $this->stringHelper = new StringHelper();
        $this->startSheet();
    }