Пример #1
0
 /**
  * Return the current element
  *
  * @return Email
  */
 public function current()
 {
     // call the underlying iterator to make sure a batch is loaded
     // actually $this->batch is initialized at this moment
     $this->iterator->current();
     return $this->batch[$this->iterator->key()];
 }
 /**
  * Return the current element
  *
  * @return Email
  */
 public function current()
 {
     return $this->manager->convertToEmail($this->iterator->current());
 }