src/main/php/response/WebResponse.php
public function methodNotAllowed(string $requestMethod, array $allowedMethods): Error
    {
        $this->status->methodNotAllowed($allowedMethods);
        return Error::methodNotAllowed($requestMethod, $allowedMethods);
    }
public function methodNotAllowed(string $requestMethod, array $allowedMethods): Error
    {
        $this->status->methodNotAllowed($allowedMethods);
        return Error::methodNotAllowed($requestMethod, $allowedMethods);
    }
public function methodNotAllowed ( string $ requestMethod , array $ allowedMethods ) : Error { $ this -> status -> methodNotAllowed ( $ allowedMethods ) ; return Error :: methodNotAllowed ( $ requestMethod , $ allowedMethods ) ; }
creates a 405 Method Not Allowed message

@param   string    $requestMethod
@param   string[]  $allowedMethods
@return  \stubbles\webapp\response\Error
@since   2.0.0
creates a 405 Method Not Allowed message