public function withProtocolVersion($version)
    {
        if (!is_string($version)) {
            throw new \InvalidArgumentException("Expected protocol version to be a string");
        }
        
        $this->protocolVersion = $version;
        
        $this->sendStatusHeader();
        
        return $this;
    }
public function withProtocolVersion($version)
    {
        if (!is_string($version)) {
            throw new \InvalidArgumentException("Expected protocol version to be a string");
        }
        
        $this->protocolVersion = $version;
        
        $this->sendStatusHeader();
        
        return $this;
    }
public function withProtocolVersion ( $ version ) { if ( ! is_string ( $ version ) ) { throw new \ InvalidArgumentException ( "Expected protocol version to be a string" ) ; } $ this -> protocolVersion = $ version ; $ this -> sendStatusHeader ( ) ; return $ this ; }
Set the protocol version

@param string $version
@return $this
Set the protocol version