public function getSheets()
    {
        $this->throwIfBookIsNotAvailable();

        $externalSheets = [];
        $worksheets = $this->getWorkbook()->getWorksheets();

        /** @var Common\Internal\WorksheetInterface $worksheet */
        foreach ($worksheets as $worksheet) {
            $externalSheets[] = $worksheet->getExternalSheet();
        }

        return $externalSheets;
    }
public function getSheets()
    {
        $this->throwIfBookIsNotAvailable();

        $externalSheets = [];
        $worksheets = $this->getWorkbook()->getWorksheets();

        /** @var Common\Internal\WorksheetInterface $worksheet */
        foreach ($worksheets as $worksheet) {
            $externalSheets[] = $worksheet->getExternalSheet();
        }

        return $externalSheets;
    }
public function getSheets ( ) { $ this -> throwIfBookIsNotAvailable ( ) ; $ externalSheets = [ ] ; $ worksheets = $ this -> getWorkbook ( ) -> getWorksheets ( ) ; /** @var Common\Internal\WorksheetInterface $worksheet */ foreach ( $ worksheets as $ worksheet ) { $ externalSheets [ ] = $ worksheet -> getExternalSheet ( ) ; } return $ externalSheets ; }
Returns all the workbook's sheets

@api
@return Common\Sheet[] All the workbook's sheets
@throws \Box\Spout\Writer\Exception\WriterNotOpenedException If the writer has not been opened yet
Returns all the workbook s sheets