original_string: private function getDirective()
      {
          switch (strtolower($this->type)) {
              case 'digest':
                  return 'Digest ' . $this->buildDirectiveParameters(array(
                      'realm' => $this->realm,
                      'qop' => 'auth',
                      'nonce' => uniqid(),
                      'opaque' => md5($this->realm),
                  ));
  
              default:
                  return 'Basic ' . $this->buildDirectiveParameters(array(
                      'realm' => $this->realm
                  ));
          }
      }
code: private function getDirective()
      {
          switch (strtolower($this->type)) {
              case 'digest':
                  return 'Digest ' . $this->buildDirectiveParameters(array(
                      'realm' => $this->realm,
                      'qop' => 'auth',
                      'nonce' => uniqid(),
                      'opaque' => md5($this->realm),
                  ));
  
              default:
                  return 'Basic ' . $this->buildDirectiveParameters(array(
                      'realm' => $this->realm
                  ));
          }
      }
code_tokens: private function getDirective ( ) { switch ( strtolower ( $ this -> type ) ) { case 'digest' : return 'Digest ' . $ this -> buildDirectiveParameters ( array ( 'realm' => $ this -> realm , 'qop' => 'auth' , 'nonce' => uniqid ( ) , 'opaque' => md5 ( $ this -> realm ) , ) ) ; default : return 'Basic ' . $ this -> buildDirectiveParameters ( array ( 'realm' => $ this -> realm ) ) ; } }
docstring: Return Directive according the auth type
  
  @return string
docstring_tokens: Return Directive according the auth type