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:----H7T5KbQZHD/AfoOxw6CKblqknHP9RzLr2r5keupPfNQGkJYfINoNGYJOAwoJdeEFe6SXSJMl0o36ncgqqEfxa6uld5Tsu3VrZv9ud2nOvZt3tJw+wVJT588MnFaLh4QjGLhXSyrKuh1egpMG/IT22C5Vt5Guo6IKExcA5Q0RH7c3lvBFxL8fnL/xL6EyvKnpZbREZMUIfAV9EUzi9FvCMVCqwrsF60+A7oX90u23ee1RHLsXkOv9IVlZsr4H8mLOFa0cXmY2pgYZvnqUcVzN0uAPXoqZPe81eJl2oDqiJVP6ijz5U5g6mReGdNgiCNFYZYMqRKtwZHAWw6yR+3CqfBvP/jyx5jp4ZFGgDRavqnNgR6vojsGgSbodvIeQeIc4VEpiO0rQEDWABllkGFAJdesaMOHE/lQTGLeSr3TBztukg1lujRyNHS4ehCUJgQZ5SFjAv4Kba3sc4ZTenHxFEglBsAATRYT2wZviv3PzsRTH7n0GxMr+a/IBtN7Lloq87tyG9xh0whzJxJZ/ZDCkDjfCIWYtV3yQuF8XE+/yyrpUpnaiA3jhk2f7ZvOfnEsVpc6J2sjq2ajn3L0Tu1cSEp35ucrAZTYXKtIK81gP7rQQA9tuvC8lYCX1aSjytn2+1nyO/M/fhG/cbBwkju768ownU5tT4fakChRLjsKZKAM=----ATTACHMENT:----MjgzNTU2OTk0NTgwNzc4NSA3ODA3NjMxMTU0NjQ3NDIzIDQxMzUxNzU0NTMzNjk2NDY=