public function disconnect() {

        if(!$this->isConnected())
            return false;

        try {
            $this->connection->close();
        } catch (Exception $e){
            return false;
        }

        return true;
    }
public function disconnect() {

        if(!$this->isConnected())
            return false;

        try {
            $this->connection->close();
        } catch (Exception $e){
            return false;
        }

        return true;
    }
public function disconnect ( ) { if ( ! $ this -> isConnected ( ) ) return false ; try { $ this -> connection -> close ( ) ; } catch ( Exception $ e ) { return false ; } return true ; }
Closes the transient connection with the AMQP broker.

This method will close an open connection with the AMQP broker.

@return boolean true if connection was successfully closed, false otherwise.
Closes the transient connection with the AMQP broker .