public function setRedirectUrl($redirectUrl)
    {

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

        $this->redirectUrl = $redirectUrl;
    }
public function setRedirectUrl($redirectUrl)
    {

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

        $this->redirectUrl = $redirectUrl;
    }
public function setRedirectUrl ( $ redirectUrl ) { if ( ! $ this -> getUrlValidator ( ) -> isValid ( $ redirectUrl ) ) { throw new InvalidArgumentException ( 'URL provided is invalid' ) ; } $ this -> redirectUrl = $ redirectUrl ; }
Set the Redirect URL

@param string $redirectUrl Redirect URL

@return void
@throws InvalidArgumentException
Set the Redirect URL