src/Result.php
public static function createMethodNotAllowed(array $routeAllowedMethods):self
    {
        $result                         = new self();
        $result->routeAllowedMethods    = $routeAllowedMethods;
        $result->status                 = $result::ROUTE_METHOD_NOT_ALLOWED;
        return $result;
    }
public static function createMethodNotAllowed(array $routeAllowedMethods):self
    {
        $result                         = new self();
        $result->routeAllowedMethods    = $routeAllowedMethods;
        $result->status                 = $result::ROUTE_METHOD_NOT_ALLOWED;
        return $result;
    }
public static function createMethodNotAllowed ( array $ routeAllowedMethods ) : self { $ result = new self ( ) ; $ result -> routeAllowedMethods = $ routeAllowedMethods ; $ result -> status = $ result :: ROUTE_METHOD_NOT_ALLOWED ; return $ result ; }
Create an instance if method not allowed

@param array $routeAllowedMethods
@return self
Create an instance if method not allowed