public function setSecure($secure = null)
    {
        if ($secure == 'tls') {
            $this->_protocol = 'tcp';
            $this->_secure = 'tls';
        } elseif ($secure == 'ssl') {
            $this->_protocol = 'ssl';
            $this->_secure = 'ssl';
        } else {
            $this->_protocol = 'tcp';
            $this->_secure = 'no';
        }
    }
public function setSecure($secure = null)
    {
        if ($secure == 'tls') {
            $this->_protocol = 'tcp';
            $this->_secure = 'tls';
        } elseif ($secure == 'ssl') {
            $this->_protocol = 'ssl';
            $this->_secure = 'ssl';
        } else {
            $this->_protocol = 'tcp';
            $this->_secure = 'no';
        }
    }
public function setSecure ( $ secure = null ) { if ( $ secure == 'tls' ) { $ this -> _protocol = 'tcp' ; $ this -> _secure = 'tls' ; } elseif ( $ secure == 'ssl' ) { $ this -> _protocol = 'ssl' ; $ this -> _secure = 'ssl' ; } else { $ this -> _protocol = 'tcp' ; $ this -> _secure = 'no' ; } }
Sets the encryption used.

@param string $secure
The encryption used. Can be 'ssl', 'tls'. Anything else defaults to
a non secure TCP connection
@return void
Sets the encryption used .