public function forward()
    {
        if ($this->position > count($this->stack) - 2) {
            throw new \LogicException('You are already on the last page.');
        }

        return clone $this->stack[++$this->position];
    }
public function forward()
    {
        if ($this->position > count($this->stack) - 2) {
            throw new \LogicException('You are already on the last page.');
        }

        return clone $this->stack[++$this->position];
    }
public function forward ( ) { if ( $ this -> position > count ( $ this -> stack ) - 2 ) { throw new \ LogicException ( 'You are already on the last page.' ) ; } return clone $ this -> stack [ ++ $ this -> position ] ; }
Goes forward in the history.

@return Request A Request instance

@throws \LogicException if the stack is already on the last page
Goes forward in the history .