diff --git a/src/Ddeboer/DataImport/Reader/ExcelReader.php b/src/Ddeboer/DataImport/Reader/ExcelReader.php index 97220ea6..e77e8305 100644 --- a/src/Ddeboer/DataImport/Reader/ExcelReader.php +++ b/src/Ddeboer/DataImport/Reader/ExcelReader.php @@ -11,11 +11,12 @@ * @link http://phpexcel.codeplex.com/ * @link https://github.com/logiQ/PHPExcel */ -class ExcelReader implements CountableReaderInterface +class ExcelReader implements CountableReaderInterface, \SeekableIterator { protected $worksheet; protected $headerRowNumber; protected $pointer = 0; + protected $columnHeaders; /** * Total number of rows @@ -35,6 +36,7 @@ public function __construct(\SplFileObject $file, $headerRowNumber = null, $acti { $reader = \PHPExcel_IOFactory::createReaderForFile($file->getPathName()); $reader->setReadDataOnly(true); + /** @var \PHPExcel $excel */ $excel = $reader->load($file->getPathname()); if (null !== $activeSheet) {