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:----UaxlrhDEKypzpByg7C0/7cFUtbPp2M9zgXXjozWxSdIf4bIF/1CRAI2QRwtrZX2LI/Sz3x5O3oqwC6ctucEcIGKCEkYE+1Vvgy6XairIuazrbXC8HfKj/pw65iYM6SB/+iWDCcTj3yNn2ccWn4wuTUvinJYNA/Sa5BeftD7M4cbiUPtp1Gl+N+nfukEXTczqOwHAcGQJInqIiOVQQWegjmmX/hoF3AsbvVREtsgrBB6foDV9DO87ye8/9vlMJW+QNogBtsb/D92+Uy/hntz3kenC8tj+FthL42M+u5M0yGXsYWHFS8Ll675aueMTVz/TGN5Y4+tVkaggeQAYvAOywllvD4NT3uBn7nkHbwSVh2B183Uu9bx5qfcfcHxIGA8c6Xh7/nwqYYemB786TMMNEYg6An0lKgfnW9nyA/dAes8/h+wLwigU3fh81SKpo37qelgoLnXCJH9MbXuMlzOMG+RmoSHxg9CH+5tJ9+bCAfTjZvYC2Ooqo0Xo2aIp1bCluSoEZROsh5+1lw7zQ+w0d2K9p7nJZSdl5MNqxJYRIZQpO5D3WgLB62X4KP+pv4LzmgQZoJsCUWC6+mtsPseJMfsQNOuurTr0dfMJoT9BbonNuPce/WaTm4QOT+eCRy1uPAkiJFhCWwGWssWyW4FBg8miOaXgrjsYMCjkGca3yvQ=----ATTACHMENT:----MjMwMTM3MzcyNzAzNzEyNyAyNTE0MDgyNzM0MjI3OTgzIDE5MDc5MTcyNjQ5NjI0NTE=