original_string: private function getSignature($base, $key)
      {
          switch ($this->sigMethod) {
              case 'PLAINTEXT':
                  $signature = $key;
                  break;
              case 'HMAC-SHA1':
                  $signature = base64_encode(hash_hmac('sha1', $base, $key, true));
                  break;
          }
          
          return $signature;
      }
code: private function getSignature($base, $key)
      {
          switch ($this->sigMethod) {
              case 'PLAINTEXT':
                  $signature = $key;
                  break;
              case 'HMAC-SHA1':
                  $signature = base64_encode(hash_hmac('sha1', $base, $key, true));
                  break;
          }
          
          return $signature;
      }
code_tokens: private function getSignature ( $ base , $ key ) { switch ( $ this -> sigMethod ) { case 'PLAINTEXT' : $ signature = $ key ; break ; case 'HMAC-SHA1' : $ signature = base64_encode ( hash_hmac ( 'sha1' , $ base , $ key , true ) ) ; break ; } return $ signature ; }
docstring: Generate the oauth_signature for a request
  @param string $base Signature base string, used by HMAC-SHA1
  @param string $key Concatenated consumer and token secrets
docstring_tokens: Generate the oauth_signature for a request