Current File : /var/www/vinorea/modules/ipexportimport/classes/import/order/EIAReadFilter.php
<?php
/**
 *
 * NOTICE OF LICENSE
 *
 *  @author    SmartPresta <tehran.alishov@gmail.com>
 *  @copyright 2024 SmartPresta
 *  @license   Commercial License
 */

if (!defined('_PS_VERSION_')) {
    exit;
}

//  use PhpOffice\PhpSpreadsheet\Reader\IReadFilter;

  class EIAReadFilter
  {
    private $_startRow = 0;
    private $_endRow = 0;

    /**  Set the list of rows that we want to read  */
    public function setRows($startRow, $chunkSize) {
      $this->_startRow    = $startRow;
      $this->_endRow      = $startRow + $chunkSize;
    }

    public function readCell($column, $row, $worksheetName = '') {
      if (($row >= $this->_startRow && $row < $this->_endRow)) {
        return true;
      }
      return false;
    }
  }