private static function methodIsAllowed($httpMethod)
    {
        $allowedMethods = [
            self::METHOD_GET,
            self::METHOD_POST,
            self::METHOD_PUT,
            self::METHOD_PATCH,
            self::METHOD_DELETE,
        ];

        return in_array($httpMethod, $allowedMethods, true);
    }
private static function methodIsAllowed($httpMethod)
    {
        $allowedMethods = [
            self::METHOD_GET,
            self::METHOD_POST,
            self::METHOD_PUT,
            self::METHOD_PATCH,
            self::METHOD_DELETE,
        ];

        return in_array($httpMethod, $allowedMethods, true);
    }
private static function methodIsAllowed ( $ httpMethod ) { $ allowedMethods = [ self :: METHOD_GET , self :: METHOD_POST , self :: METHOD_PUT , self :: METHOD_PATCH , self :: METHOD_DELETE , ] ; return in_array ( $ httpMethod , $ allowedMethods , true ) ; }
Check the HTTP method is allowed.

@param string $httpMethod

@return bool
Check the HTTP method is allowed .