public function fetch() { if (!$this->fetchIterator) { $this->fetchIterator = $this->getIterator(); } if ($current = $this->fetchIterator->current()) { $this->fetchIterator->next(); return $current; } return null; }