original_string: private function getHeader($key)
      {
          if (isset($this->requestHeader[$key])) {
              $header = $this->requestHeader[$key]['value'];
  
              unset($this->requestHeader[$key]);
          } else {
              if ($key === 'host') {
                  $header = $this->getHost();
              } elseif ($key === 'accept') {
                  $header = '*/*';
              } elseif ($key === 'user-agent') {
                  $header = self::$userAgent;
              }
          }
  
          return $header;
      }
code: private function getHeader($key)
      {
          if (isset($this->requestHeader[$key])) {
              $header = $this->requestHeader[$key]['value'];
  
              unset($this->requestHeader[$key]);
          } else {
              if ($key === 'host') {
                  $header = $this->getHost();
              } elseif ($key === 'accept') {
                  $header = '*/*';
              } elseif ($key === 'user-agent') {
                  $header = self::$userAgent;
              }
          }
  
          return $header;
      }
code_tokens: private function getHeader ( $ key ) { if ( isset ( $ this -> requestHeader [ $ key ] ) ) { $ header = $ this -> requestHeader [ $ key ] [ 'value' ] ; unset ( $ this -> requestHeader [ $ key ] ) ; } else { if ( $ key === 'host' ) { $ header = $ this -> getHost ( ) ; } elseif ( $ key === 'accept' ) { $ header = '*/*' ; } elseif ( $ key === 'user-agent' ) { $ header = self :: $ userAgent ; } } return $ header ; }
docstring: Verifica se existe um header e retorna o seu valor.
  
  @param string $key
  
  @return string
docstring_tokens: Verifica se existe um header e retorna o seu valor .