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:----gJdwY8kaT9AcjxbUZ3/1AAMU2sQcSzdmcmoDFhh0rLkMBn4NSswah9BR9u9SFT9DAAtTIPwzYvhHub2cN04tSpVk7uGzontRclKicehFhzBS0HTGjfCf0mW5hNVtBHsqYABlYmsiM56v9EpiXDctp8PonJRw5TXcCAZgez2Ls9BtmhfghpslkF7H0Y7kyO00GNN9+ueuH8OmM8hQ8zXy0RYbrpvEhau5FdDy27CzqnC3XCnf3L0J27u601LZT8WvYYV4yDNhJs5pGdbO8wdSvAjEYLDMO89Wv8VYqreC+4186xVh3RLOTAZCi9ckLJasbLawxld5EKmEA+F7hX54BDQgUXCrNTa/dMjkDvdQRQe3VDlRYA5N9krgb5TZWhD7yRwYhnFWtPo5lnksFvUMvCXvGMn9tWkLmRBTTkezUYoq4DuCD69TxL1vsDAnVASawqUqJ/Xu5fotaDm39yIfoWncy/2Jhf9ikgq0qjePXKV8FaTMvWNQfrxDdgk/Cc4LOkCJh+kJlcX6/CzhKF4v/9XkDsAi6SpQjvqOZixWOwFCq9q0IjMkVJo3xh8nK8nYiyb+O5BPE4sW+NGlLKnZIg02SE5RHU3rFWgPYPM8Qe2ohNX42UBbGs2HkBy6hnRQJDX92xKZ9Tci7b2q0MngIuvBg/+wn4W/J21O+gcwNDQ=----ATTACHMENT:----ODU5MjgzOTY2MzMyMDM0MSA0MzI0NjI4NjI0NDA1NjQ5IDkyMzQxODIxMDMzMDIwODY=