src/AbstractGenerator.php
final public function current()
    {
        if (!$this->valid()) {

            return null;
        }

        /*
         * Multiple calls to current() should be idempotent
         */
        if ($this->_lastPositionExecuted !== $this->_position) {

            $this->runToNextYieldStatement();
        }

        return $this->valid() ? $this->getLastYieldedValue() : null;
    }
final public function current()
    {
        if (!$this->valid()) {

            return null;
        }

        /*
         * Multiple calls to current() should be idempotent
         */
        if ($this->_lastPositionExecuted !== $this->_position) {

            $this->runToNextYieldStatement();
        }

        return $this->valid() ? $this->getLastYieldedValue() : null;
    }
final public function current ( ) { if ( ! $ this -> valid ( ) ) { return null ; } /*
         * Multiple calls to current() should be idempotent
         */ if ( $ this -> _lastPositionExecuted !== $ this -> _position ) { $ this -> runToNextYieldStatement ( ) ; } return $ this -> valid ( ) ? $ this -> getLastYieldedValue ( ) : null ; }
Get the yielded value.

@return mixed|null the yielded value
Get the yielded value .