get_result(); if($_result === false) throw new QueryExecuteException($result->error, $result->errno); $result = $_result; } parent::__construct($result); } public function next(): bool { $result = $this->result->fetch_array(MYSQLI_BOTH); if($result === null) return false; $this->currentRow = $result; return true; } public function close(): void { $this->result->close(); } }