yii\authclient\OpenId::setReturnUrl PHP Method

setReturnUrl() public method

public setReturnUrl ( string $returnUrl )
$returnUrl string authentication return URL.
    public function setReturnUrl($returnUrl)
    {
        $this->_returnUrl = $returnUrl;
    }

Usage Example

 public function testSetGet()
 {
     $client = new OpenId();
     $trustRoot = 'http://trust.root';
     $client->setTrustRoot($trustRoot);
     $this->assertEquals($trustRoot, $client->getTrustRoot(), 'Unable to setup trust root!');
     $returnUrl = 'http://return.url';
     $client->setReturnUrl($returnUrl);
     $this->assertEquals($returnUrl, $client->getReturnUrl(), 'Unable to setup return URL!');
 }