/** * Go to the next element and returns it. * * @return CircularListElement|null Next element * * @api */ public function next() { $this->cursor = $this->cursor->getNext(); return $this->cursor; }