Example #1
0
 /**
  * Return the current element
  * @link http://php.net/manual/en/iterator.current.php
  * @return mixed Can return any type.
  * @since 5.0.0
  */
 public function current()
 {
     $current = $this->cursor->current();
     if ($current === null) {
         return null;
     }
     $result = $this->applyFilters((array) $current);
     return $this->hydrator === null ? $result : $this->hydrator->call($this, $result);
 }