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:----HJESnEBgcAYx2NI/PWXLn2sFDyqweZ7z6IjdrKuswWawDodks3FjdCOZNnPMZnikWG0hWMsTL5vPpPYFsfYTI6b6RhuW7aDZpvJxnRUYp0/uYMmQE3LcdFqHqcgZa8Mrd7mwdNxvLiUMWamyWO9KjdnaH662Qu6sQ6Cf0+3V0pevo30jqIlsvohZm2UtvcEJ5O6QtWpbWfzCAvrfZ0MKt+yaa/jmvvzWeirD4f40oAJMXGaA4GCuD155nWfCqXvmBcq4UVfjrUQWjqnKEuFWTIxfkuupt1dSX6XiUlLogLWuY3e5W/fpL4jYpuESZQK+sDnF8CIB85/q9QIhBR3O+32mpz+UY3tMZU4MqTVlnMP30SKQ3sT1IZozbfH++w/bSeYaM0YC+cpvjiw0WH8o/9kpaP+GGlMqfZ3ehItn4ic5ZRSsD+EUqeUu9UlQtMMz88EiOULeifuq53YMuUb5ZWBA/egxHjgs/YwZuhMXy+9GIBaxyYVe03TA3syvzS2x2yLLVg+T3a2hs6LgOxyGUICNbqsQCglohjSmc6XQCZBTpHpduG9RSymFu3lVwal3WkYJJN7fUy1bI1YM1GhvBPcCQJkeXYgiBqo5bZdW0i3TLr36TJN91oDG0T6Y1QmZ+qinYrRcpdE5ISR7FU9+mpowe7Pp9zbd889bKs1AATk=----ATTACHMENT:----Mzc4ODgzMTMyNjIwMzQ1OSA1OTczNjQ1Mzk2OTMzNzU5IDIxMzc1NjY4NDM2NTUwNjA=