public function getResponse()
    {
        if (! $this->_response instanceof LibBaseDispatcherResponse) {
            $this->_response = parent::getResponse();

            if (! $this->_response instanceof LibBaseDispatcherResponse) {
                throw new InvalidArgumentException(
                    'Response: '.get_class($this->_response).' must be an intance of LibBaseDispatcherResponse'
                );
            }

            $this->_response->setRequest($this->getRequest());
        }

        return $this->_response;
    }
public function getResponse()
    {
        if (! $this->_response instanceof LibBaseDispatcherResponse) {
            $this->_response = parent::getResponse();

            if (! $this->_response instanceof LibBaseDispatcherResponse) {
                throw new InvalidArgumentException(
                    'Response: '.get_class($this->_response).' must be an intance of LibBaseDispatcherResponse'
                );
            }

            $this->_response->setRequest($this->getRequest());
        }

        return $this->_response;
    }
public function getResponse ( ) { if ( ! $ this -> _response instanceof LibBaseDispatcherResponse ) { $ this -> _response = parent :: getResponse ( ) ; if ( ! $ this -> _response instanceof LibBaseDispatcherResponse ) { throw new InvalidArgumentException ( 'Response: ' . get_class ( $ this -> _response ) . ' must be an intance of LibBaseDispatcherResponse' ) ; } $ this -> _response -> setRequest ( $ this -> getRequest ( ) ) ; } return $ this -> _response ; }
Set the request of the response.

@return LibBaseDispatcherResponse
Set the request of the response .