protected function validateMethod(string $method): void
    {
        if (! RequestMethod::isValid($method)) {
            throw new InvalidMethod(
                sprintf(
                    'Unsupported HTTP method "%s" provided',
                    $method
                )
            );
        }
    }
protected function validateMethod(string $method): void
    {
        if (! RequestMethod::isValid($method)) {
            throw new InvalidMethod(
                sprintf(
                    'Unsupported HTTP method "%s" provided',
                    $method
                )
            );
        }
    }
protected function validateMethod ( string $ method ) : void { if ( ! RequestMethod :: isValid ( $ method ) ) { throw new InvalidMethod ( sprintf ( 'Unsupported HTTP method "%s" provided' , $ method ) ) ; } }
Validate a method.

@param string $method The method

@throws \Valkyrja\HttpMessage\Exceptions\InvalidMethod

@return void
Validate a method .