public function setupSigner(ServerIssuedCredentials $serverIssuedCredentials = null)
    {
        if ($this->shouldSignWithClientCredentials()) {
            $this->signer->setClientCredentials($this->config->getClientCredentials());
        }

        if ($this->shouldSignWithServerIssuedCredentials($serverIssuedCredentials)) {
            $this->signer->setServerIssuedCredentials($serverIssuedCredentials);
        }

        return $this->signer;
    }
public function setupSigner(ServerIssuedCredentials $serverIssuedCredentials = null)
    {
        if ($this->shouldSignWithClientCredentials()) {
            $this->signer->setClientCredentials($this->config->getClientCredentials());
        }

        if ($this->shouldSignWithServerIssuedCredentials($serverIssuedCredentials)) {
            $this->signer->setServerIssuedCredentials($serverIssuedCredentials);
        }

        return $this->signer;
    }
public function setupSigner ( ServerIssuedCredentials $ serverIssuedCredentials = null ) { if ( $ this -> shouldSignWithClientCredentials ( ) ) { $ this -> signer -> setClientCredentials ( $ this -> config -> getClientCredentials ( ) ) ; } if ( $ this -> shouldSignWithServerIssuedCredentials ( $ serverIssuedCredentials ) ) { $ this -> signer -> setServerIssuedCredentials ( $ serverIssuedCredentials ) ; } return $ this -> signer ; }
Setup the signer.

@param \Risan\OAuth1\Credentials\ServerIssuedCredentials|null $serverIssuedCredentials

@return \Risan\OAuth1\Signature\SignerInterface
Setup the signer .