original_string: public function setHttpMethod($method)
      {
          $allowedMethods = array(
               'POST',
               'PUT',
               'GET',
               'DELETE',
               'PATCH'
          );
          if (!in_array(strtoupper($method), $allowedMethods)) {
              throw new \InvalidArgumentException('Provided method not allowed');
          }
          $this->httpMethod = strtoupper($method);
          return $this;
      }
code: public function setHttpMethod($method)
      {
          $allowedMethods = array(
               'POST',
               'PUT',
               'GET',
               'DELETE',
               'PATCH'
          );
          if (!in_array(strtoupper($method), $allowedMethods)) {
              throw new \InvalidArgumentException('Provided method not allowed');
          }
          $this->httpMethod = strtoupper($method);
          return $this;
      }
code_tokens: public function setHttpMethod ( $ method ) { $ allowedMethods = array ( 'POST' , 'PUT' , 'GET' , 'DELETE' , 'PATCH' ) ; if ( ! in_array ( strtoupper ( $ method ) , $ allowedMethods ) ) { throw new \ InvalidArgumentException ( 'Provided method not allowed' ) ; } $ this -> httpMethod = strtoupper ( $ method ) ; return $ this ; }
docstring: Method to set the HTTP verb for the request
  
  @param string $method
docstring_tokens: Method to set the HTTP verb for the request