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:----w8LymTR2aBIP/yU7dxAlaBrDk0N/lxs1pJv19nRGafQY4rZYq+FRg4xLofiGfjiRDUPxWfsECA+hECJpcOjokPuKTPU+4c0W2QIUmTSBT8WO2iOeDYo0it/OAm0HLKadtJm/UqOUXvkAewsQwH4BV4WGuChlYCA+30DpwALSoFwEDB6ruaKv8VDJL0q8vn8UoCb9xpaccv/Hx2wbYf3eezxTg3Nttj1XQtoKUoJelEEFnbPPHqVuTMu1E12vaAEMdHpkSR0ME5iXky9c9uSew36pcs+39lkNPGkhxMHs+1BjwN5yILGkuXUiha+LPHXLAVDzYh+tZdWfVwNTMgQPROsmn3gPa9FY5ZJ7PpRQ+BpWAXDVXVXkofQth0jPyjIJG/aRpJJ1rEZEWXgDttohUWu1lJQ3jKsEg271sZpeSc4TwvonYG523CuZohfM2j7KfeTvwCLdtMYvmTYoAQSsrrp6821uNInmRpYRW/f5Ai+frys1Py12H9fdLNXbsLbEP6bTUJnUFVihybjwsIWwz3AqD9NHdbX8MqQBq0gBtBS6/hjzFYm5g3kfV3SjxYHb8h3zXZMQ3mAeA9mVSrRS+s/EMb63Q8q/zezFcCeK3M8gVtnG0FVcJbOk5IT1feNou7uwg0BN3o0mMdmQLLnnIzIiyrMLS4Z3/sIOwG84Pfc=----ATTACHMENT:----NzUyMTIzNDAxMDA2NDQyIDEyMTY0ODIwMDk5MDM1NDMgODE2NjE4ODc2MDI1OTU5MQ==