original_string: public function setRequestMethod($method)
      {
          if ($this->getType() !== self::TYPE_REQUEST)
              return false;
  
          $method = strtoupper($method);
          $REQUEST_METHODS = array('OPTIONS', 'GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE');
  
          if (!in_array($method, $REQUEST_METHODS))
              return false;
  
          $this->requestMethod = $method;
          return true;
      }
code: public function setRequestMethod($method)
      {
          if ($this->getType() !== self::TYPE_REQUEST)
              return false;
  
          $method = strtoupper($method);
          $REQUEST_METHODS = array('OPTIONS', 'GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE');
  
          if (!in_array($method, $REQUEST_METHODS))
              return false;
  
          $this->requestMethod = $method;
          return true;
      }
code_tokens: public function setRequestMethod ( $ method ) { if ( $ this -> getType ( ) !== self :: TYPE_REQUEST ) return false ; $ method = strtoupper ( $ method ) ; $ REQUEST_METHODS = array ( 'OPTIONS' , 'GET' , 'HEAD' , 'POST' , 'PUT' , 'DELETE' , 'TRACE' ) ; if ( ! in_array ( $ method , $ REQUEST_METHODS ) ) return false ; $ this -> requestMethod = $ method ; return true ; }
docstring: Set the Request Method of the HTTP Message
  
  @param string $method  The request method name.
  {@link http://tools.ietf.org/html/rfc2068#section-5.1.1 See RFC2068 section 5.1.1}
  for list of acceptable methods
  @return bool  TRUE on success, or FALSE if the message is not of type
  HttpMessage::TYPE_REQUEST or an invalid request method was supplied
docstring_tokens: Set the Request Method of the HTTP Message