public function setRequestUrl($requestUrl)
    {
        if (!$this->getUrlValidator()->isValid($requestUrl)) {
            throw new InvalidArgumentException('URL provided is invalid');
        }

        $this->requestUrl = $requestUrl;
    }
public function setRequestUrl($requestUrl)
    {
        if (!$this->getUrlValidator()->isValid($requestUrl)) {
            throw new InvalidArgumentException('URL provided is invalid');
        }

        $this->requestUrl = $requestUrl;
    }
public function setRequestUrl ( $ requestUrl ) { if ( ! $ this -> getUrlValidator ( ) -> isValid ( $ requestUrl ) ) { throw new InvalidArgumentException ( 'URL provided is invalid' ) ; } $ this -> requestUrl = $ requestUrl ; }
Set the Request URL to redirect

@param string $requestUrl Request URL to redirect

@return void
@throws \Exception
Set the Request URL to redirect