public function setProtocol($protocol)
	{
		switch(strtoupper($protocol))
		{
			case 'HTTP/1.0':
			case 'HTTP/1.1':
				$this->protocol = strtoupper($protocol);
			break;
			default:
				throw new \OutOfRangeException(sprintf('Unsupported protocol: "%s"', $protocol));
		}
		
		return $this;
	}
public function setProtocol($protocol)
	{
		switch(strtoupper($protocol))
		{
			case 'HTTP/1.0':
			case 'HTTP/1.1':
				$this->protocol = strtoupper($protocol);
			break;
			default:
				throw new \OutOfRangeException(sprintf('Unsupported protocol: "%s"', $protocol));
		}
		
		return $this;
	}
public function setProtocol ( $ protocol ) { switch ( strtoupper ( $ protocol ) ) { case 'HTTP/1.0' : case 'HTTP/1.1' : $ this -> protocol = strtoupper ( $ protocol ) ; break ; default : throw new \ OutOfRangeException ( sprintf ( 'Unsupported protocol: "%s"' , $ protocol ) ) ; } return $ this ; }
Set the HTTP protocol being used.

@param string $protocol
@return HttpMessage
Set the HTTP protocol being used .