static function MethodData(RequestMethod $method, $name, $filter = FILTER_DEFAULT, $options = null)
    {
        switch ($method)
        {
            case RequestMethod::Get():
                return self::GetData($name, $filter, $options);
            
            case RequestMethod::Post():
                return self::PostData($name, $filter, $options);
            
            default:
                throw new \InvalidArgumentException('Request::MethodData is available for request methods POST and GET, only');
        }
    }
static function MethodData(RequestMethod $method, $name, $filter = FILTER_DEFAULT, $options = null)
    {
        switch ($method)
        {
            case RequestMethod::Get():
                return self::GetData($name, $filter, $options);
            
            case RequestMethod::Post():
                return self::PostData($name, $filter, $options);
            
            default:
                throw new \InvalidArgumentException('Request::MethodData is available for request methods POST and GET, only');
        }
    }
static function MethodData ( RequestMethod $ method , $ name , $ filter = FILTER_DEFAULT , $ options = null ) { switch ( $ method ) { case RequestMethod :: Get ( ) : return self :: GetData ( $ name , $ filter , $ options ) ; case RequestMethod :: Post ( ) : return self :: PostData ( $ name , $ filter , $ options ) ; default : throw new \ InvalidArgumentException ( 'Request::MethodData is available for request methods POST and GET, only' ) ; } }
Returns GET or POST data
@param RequestMethod $method The request method
@param string $name parameter name
@return string Returns the request data filtered by name
@throws \InvalidArgumentException Raises an error if method is neither post nor get
Returns GET or POST data