public function setMethodOverride($method = NULL)
	{
		if($method === NULL)
		{
			$this->methodOverride = NULL;
		}
		else
		{
			$method = strtoupper($method);
			
			if(!preg_match("'^[A-Z]{2,}$'", $method))
			{
				throw new \InvalidArgumentException(sprintf('Invalid HTTP request method: "%s"', $method));
			}
			
			$this->methodOverride = $method;
		}
		
		return $this;
	}
public function setMethodOverride($method = NULL)
	{
		if($method === NULL)
		{
			$this->methodOverride = NULL;
		}
		else
		{
			$method = strtoupper($method);
			
			if(!preg_match("'^[A-Z]{2,}$'", $method))
			{
				throw new \InvalidArgumentException(sprintf('Invalid HTTP request method: "%s"', $method));
			}
			
			$this->methodOverride = $method;
		}
		
		return $this;
	}
public function setMethodOverride ( $ method = NULL ) { if ( $ method === NULL ) { $ this -> methodOverride = NULL ; } else { $ method = strtoupper ( $ method ) ; if ( ! preg_match ( "'^[A-Z]{2,}$'" , $ method ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid HTTP request method: "%s"' , $ method ) ) ; } $ this -> methodOverride = $ method ; } return $ this ; }
Set method override for a POST request.

@param string $method The method to be used.
@return HttpRequest

@throws \InvalidArgumentException When the given HTTP method is invalid.
Set method override for a POST request .