Box\Spout\Reader\XLSX\SheetIterator::__construct PHP Метод

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

public __construct ( string $filePath, ReaderOptions $options, SharedStringsHelper $sharedStringsHelper, Box\Spout\Common\Helper\GlobalFunctionsHelper $globalFunctionsHelper )
$filePath string Path of the file to be read
$options ReaderOptions Reader's current options
$sharedStringsHelper Box\Spout\Reader\XLSX\Helper\SharedStringsHelper
$globalFunctionsHelper Box\Spout\Common\Helper\GlobalFunctionsHelper
    public function __construct($filePath, $options, $sharedStringsHelper, $globalFunctionsHelper)
    {
        // Fetch all available sheets
        $sheetHelper = new SheetHelper($filePath, $options, $sharedStringsHelper, $globalFunctionsHelper);
        $this->sheets = $sheetHelper->getSheets();
        if (count($this->sheets) === 0) {
            throw new NoSheetsFoundException('The file must contain at least one sheet.');
        }
    }