public function setMethod($method)
	{
		if($method == 'any')
			$method = array('get', 'post', 'put', 'delete', 'patch', 'options');
		else if(!is_array($method))
			$method = explode('|', $method);

		$method = array_map(function($value){return trim(strtolower($value));}, $method);
	
		$this->setProperty('method', $method);

		return $this;
	}
public function setMethod($method)
	{
		if($method == 'any')
			$method = array('get', 'post', 'put', 'delete', 'patch', 'options');
		else if(!is_array($method))
			$method = explode('|', $method);

		$method = array_map(function($value){return trim(strtolower($value));}, $method);
	
		$this->setProperty('method', $method);

		return $this;
	}
public function setMethod ( $ method ) { if ( $ method == 'any' ) $ method = array ( 'get' , 'post' , 'put' , 'delete' , 'patch' , 'options' ) ; else if ( ! is_array ( $ method ) ) $ method = explode ( '|' , $ method ) ; $ method = array_map ( function ( $ value ) { return trim ( strtolower ( $ value ) ) ; } , $ method ) ; $ this -> setProperty ( 'method' , $ method ) ; return $ this ; }
Set method for this route.
@param mixed $method (array of method, or /)
@return $this
Set method for this route .