yii\authclient\OpenId::setTrustRoot PHP Méthode

setTrustRoot() public méthode

public setTrustRoot ( string $value )
$value string client trust root (realm).
    public function setTrustRoot($value)
    {
        $this->_trustRoot = $value;
    }

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!');
 }