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.'); } }