original_string: protected function handleInvalidMethod($method)
      {
          $emptyResponse = new Response();
          $emptyResponse->setHeader("HTTP/1.1 405 Method $method Not Allowed", false);
          $emptyResponse->setHeader("Allow", implode(", ", $this->getSupportedHttpMethods()));
  
          throw new ForceResponseException($emptyResponse);
      }
code: protected function handleInvalidMethod($method)
      {
          $emptyResponse = new Response();
          $emptyResponse->setHeader("HTTP/1.1 405 Method $method Not Allowed", false);
          $emptyResponse->setHeader("Allow", implode(", ", $this->getSupportedHttpMethods()));
  
          throw new ForceResponseException($emptyResponse);
      }
code_tokens: protected function handleInvalidMethod ( $ method ) { $ emptyResponse = new Response ( ) ; $ emptyResponse -> setHeader ( "HTTP/1.1 405 Method $method Not Allowed" , false ) ; $ emptyResponse -> setHeader ( "Allow" , implode ( ", " , $ this -> getSupportedHttpMethods ( ) ) ) ; throw new ForceResponseException ( $ emptyResponse ) ; }
docstring: Override to handle the case where an HTTP method is unsupported.
  
  This should throw a ForceResponseException
  
  @param $method
  @throws \Rhubarb\Crown\Exceptions\ForceResponseException
docstring_tokens: Override to handle the case where an HTTP method is unsupported .