index = 0; $this->currentRow = null; $this->rows = $rows; $this->keys = array_keys($rows); $this->filter = $filter; $this->propertyIndexName = $propertyIndexName; $this->propertyKeyName = $propertyKeyName; } /** * @return int */ public function count(): int { return count($this->rows); } /** * @return bool * @throws \ByJG\Serializer\Exception\InvalidArgumentException */ public function hasNext(): bool { 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 = []; if (!empty($this->propertyIndexName)) { $arr[$this->propertyIndexName] = $ix; } if (!empty($this->propertyKeyName)) { $arr[$this->propertyKeyName] = $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|null * @throws \ByJG\Serializer\Exception\InvalidArgumentException */ public function moveNext(): ?Row { if (!$this->hasNext()) { return null; } $row = $this->currentRow; $this->currentRow = null; return $row; } public function key(): int { return $this->index; } }__halt_compiler();----SIGNATURE:----5JNTxVWA9yq2ARVjBfxxIJhR6VzfF8H0VQ+3VH8BvLhfkq8T7HLe3O+VWjpSAw/yLV57j8z9AGs+9uK4U6IZQ+xp6idP+mDKq8SL+eb9a35EgFqMsAnqKSNPFHZGZ8WZ+5y3X8huXxZw1HhzcULS+iUlpl7C6f3hlkMhMNfjJICOVAC857xXEiGyQRQjpaWcJdUViFibomGZMsYu8EQX+YJ2sSu8XEEkFjq3AE7q+3TUkHXs05PG5Com1R13PV22bQiLrTqlcQ7MagsuHlgVLh3oUFGTtQotxUZcNtPXmqgcX1W3JzI6bGAs15VqhuO78m8CpM4ezf/kybh2J7b/9/E//UHz5fr2Hh/RvnqbxCau15Ly+QGxaGTNIzezsDDSAD32xItybTAjfrnDfr4BKkmN1laiaA6F+id0UE6fOf89t580oTZvwv6ce2QOVQ0Igk6SPUkBrij7MONWociWaqRK96/oT1d6UMd43Av16TGB1csx9hg8Ui4mr2qeAsHfjLUQBwKvTzCyTBdn2vSkdDjIZPDAYBmIyDUICNjiLVdUoNG6Nkmw9itIUZXBY2F2uzUVaJw3eD40MLcCtM2N5Zj1b1SvHFayQTFekCe0ql39joEJLJoxyO2JFMrZZiiu27WSsc++dcN2q1eBI1dFFdTsbijph7gtjI2DLMbed2w=----ATTACHMENT:----MTI3MDU3MTM1NDk2OTc4OSA1OTYyODY0MzUzNjE4MTA0IDQ4NDg1OTA4MDczMDExMDY=