示例#1
0
 /**
  * {@inheritdoc}
  */
 public function next()
 {
     $this->iterationPos++;
     // call the underlying iterator to make sure a batch is loaded
     // actually $this->batch is initialized at this moment
     $this->iterator->next();
     // skip invalid messages (they are not added to $this->batch)
     while (!isset($this->batch[$this->iterationPos]) && $this->iterator->valid()) {
         $this->iterationPos++;
         $this->iterator->next();
     }
 }
 /**
  * Move forward to next element
  */
 public function next()
 {
     $this->iterator->next();
 }