Add dedicated RowIteratorInterface and SheetIteratorInterface

This commit is contained in:
jmleroux committed 2021-11-10 20:56:09 +01:00
1 parent 9533accd73
commit 4c345068d8
6 files changed
+53 -7

No files matched your search

+3 -2
View File
@@ -7,6 +7,7 @@ use Box\Spout\Common\Helper\GlobalFunctionsHelper;
use Box\Spout\Common\Manager\OptionsManagerInterface;
use Box\Spout\Reader\Common\Creator\InternalEntityFactoryInterface;
use Box\Spout\Reader\Common\Entity\Options;
use Box\Spout\Reader\CSV\SheetIterator;
use Box\Spout\Reader\Exception\ReaderNotOpenedException;
/**
@@ -46,7 +47,7 @@ abstract class ReaderAbstract implements ReaderInterface
/**
* Returns an iterator to iterate over sheets.
*
* @return IteratorInterface To iterate over sheets
* @return SheetIteratorInterface To iterate over sheets
*/
abstract protected function getConcreteSheetIterator();
@@ -211,7 +212,7 @@ abstract class ReaderAbstract implements ReaderInterface
* Returns an iterator to iterate over sheets.
*
* @throws \Box\Spout\Reader\Exception\ReaderNotOpenedException If called before opening the reader
* @return \Iterator To iterate over sheets
* @return SheetIteratorInterface To iterate over sheets
*/
public function getSheetIterator()
{