index = 0; $this->currentRow = null; $this->rows = $rows; $this->keys = array_keys($rows); $this->filter = $filter; } /** * @return int */ public function count() { return count($this->rows); } /** * @return bool * @throws \ByJG\Serializer\Exception\InvalidArgumentException */ public function hasNext() { if (!empty($this->currentRow)) { return true; } $ix = $this->index++; if ($ix >= count($this->rows)) { return false; } $key = $this->keys[$ix]; $cols = $this->rows[$key]; $arr = []; $arr["__id"] = $ix; $arr["__key"] = $key; foreach ($cols as $key => $value) { $arr[strtolower($key)] = $value; } $row = new Row($arr); if (empty($this->filter) || $this->filter->match([$row])) { $this->currentRow = $row; return true; } return $this->hasNext(); } /** * @return Row * @throws \ByJG\Serializer\Exception\InvalidArgumentException */ public function moveNext() { if (!$this->hasNext()) { return null; } $row = $this->currentRow; $this->currentRow = null; return $row; } public function key() { return $this->index; } } __halt_compiler();----SIGNATURE:----fLQ2Zk8v6QW4autPb8DJWAGfGkHQeJRUBBdcM+CV+WCwDdGVngS/JtF40EdDmzyL6Osejoz38KL3bA8dLmyeeY0pVU8G/ojRabjLBrHaZIjyuxikBihNbRpHs8vODGuAPx7fbTHqfx3UZ+DJonjWd/GPKJa8H5kCX42iX8d5LMWq8vGp5oWCNP4nbTulNrMLnKLUogWK/ZsONZ4VZI6eA8qTE2YywVhmyL0RR3gaoJjNr4vyDVUyz0KQ0hyTqNRYaQzx1+Y75XKh2bQA/+RysoTUbD1BmaW+zpK5RBX2yR7k9lNtGRipXKY/RiFoKFVwDpoMKAz+LyxjYrI+YOMi2RojlGk32/2iv1WYNQU/54p/b2GgKodC1hs9nBM3ziM7IsMAkf+8QCYUANrCfvT3/6aTxNCGJUZGojgFSEzTzznDxlJ2R5Q4PQ4pwTNdVqkgpCTuKGZGt+7T7e9JO0DLwzxR6yHAHHj9TN63+OjYQCuKXfDwYKREJCTjhXHzQAYc1pHCs1lhoJNQSYKoROeFnI/ZUGL8we0sdglCaZ4Nb8X1plWLBDuSCKFClhhsJUTQQCT2juOIeqK/wmN5b5pR20UUuR65c3mIKLqT3PqZvzE21OCQCmgDyqDhB4IlvPJWnxVwzQT3gcGbea9NlJkvHl5Akz0pXBhzdmem86CDgdw=----ATTACHMENT:----NTY1NjIwODc4OTIxMDAwMyA1ODEzNTcyMzUwNTIwMDA2IDc0MjkwMDYzMjQ4NzEyOTI=