/** * Get next element * * @return Object */ public function next() { $row = $this->rs->fetchNextRow(); $this->next = isset($row) && is_array($row) ? $this->dataMapper->buildFromRow($row) : false; return $this->next; }