File "LimitFilter.php"
Full Path: /home/fundopuh/trader.fxex.org/vendor/maatwebsite/excel/src/Filters/LimitFilter.php
File size: 749 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Maatwebsite\Excel\Filters;
use PhpOffice\PhpSpreadsheet\Reader\IReadFilter;
class LimitFilter implements IReadFilter
{
/**
* @var int
*/
private $startRow;
/**
* @var int
*/
private $endRow;
/**
* @param int $startRow
* @param int $limit
*/
public function __construct(int $startRow, int $limit)
{
$this->startRow = $startRow;
$this->endRow = $startRow + $limit;
}
/**
* @param string $column
* @param int $row
* @param string $worksheetName
* @return bool
*/
public function readCell($column, $row, $worksheetName = '')
{
return $row >= $this->startRow && $row < $this->endRow;
}
}