src/AbstractGenerator.php
final public function send($value)
    {
        $this->_lastValueSentIn        = $value;
        $this->_sendInvokedAtLeastOnce = true;

        /*
         * If we've already ran to the first yield statement (from rewind() or key(), for instance), we need
         * to try to move to the next position;
         */
        if ($this->_positionsExecutedCount > 0) {

            $this->_position++;
        }

        return $this->current();
    }
final public function send($value)
    {
        $this->_lastValueSentIn        = $value;
        $this->_sendInvokedAtLeastOnce = true;

        /*
         * If we've already ran to the first yield statement (from rewind() or key(), for instance), we need
         * to try to move to the next position;
         */
        if ($this->_positionsExecutedCount > 0) {

            $this->_position++;
        }

        return $this->current();
    }
final public function send ( $ value ) { $ this -> _lastValueSentIn = $ value ; $ this -> _sendInvokedAtLeastOnce = true ; /*
         * If we've already ran to the first yield statement (from rewind() or key(), for instance), we need
         * to try to move to the next position;
         */ if ( $ this -> _positionsExecutedCount > 0 ) { $ this -> _position ++ ; } return $ this -> current ( ) ; }
Send a value to the generator.

@param mixed $value

@return mixed
Send a value to the generator .