59 if (empty($colNames)) {
60 throw new \InvalidArgumentException(
'Empty column names');
62 if (count(array_unique($colNames)) != count($colNames)) {
63 throw new \InvalidArgumentException(
'Duplicates found in column names: ' . var_export($colNames, 1));
65 $this->_colNames = $colNames;
66 $this->_colQty = count($colNames);
89 if (count(
$row) != $this->_colQty) {
90 if ($this->_foundWrongQuoteFlag) {
96 return array_combine($this->_colNames,
$row);
108 if (
false ===
$row || [] ===
$row) {
164 public function seek($position)
166 if ($position == $this->_key) {
169 if (0 == $position || $position < $this->_key) {
175 if ($this->_key == $position) {
178 }
while ($this->_key != -1);
180 throw new \OutOfBoundsException(
'Please correct the seek position.');
const ERROR_CODE_WRONG_QUOTES
const ERROR_CODE_COLUMNS_NUMBER
__construct(array $colNames)