Exemple #1
0
 /**
  * @inheritdoc
  */
 public function next()
 {
     if (!$this->valid()) {
         $this->last = null;
     }
     $this->length--;
     $this->current = $this->current->getRight();
 }
Exemple #2
0
 /**
  * @inheritdoc
  */
 public function next()
 {
     $this->length--;
     $this->current = $this->current->getRight();
 }