original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Setup the signer.
  
  @param \Risan\OAuth1\Credentials\ServerIssuedCredentials|null $serverIssuedCredentials
  
  @return \Risan\OAuth1\Signature\SignerInterface
docstring_tokens: Setup the signer .