current() public method

Gets the element of the collection at the current iterator position.
public current ( )
 /**
  * {@inheritdoc}
  */
 public function current()
 {
     return $this->collection->current();
 }