Exemple #1
0
 /**
  * Disconnect the open connection
  *
  * @return static
  *
  * @throws ConnectionException
  */
 public function disconnect()
 {
     $this->_connection = null;
     return parent::disconnect();
 }
Exemple #2
0
 /**
  * Disconnect the open connection
  *
  * @return static
  *
  * @throws ConnectionException
  */
 public function disconnect()
 {
     $this->_client = null;
     if ($this->_transport instanceof TTransport) {
         $this->_transport->close();
     }
     $this->_transport = null;
     $this->_protocol = null;
     $this->_connected = false;
     return parent::disconnect();
 }