protected function close()
    {
        if (!$this->context) {
            return;
        }

        $this->context->close();
        $this->context = null;
        $this->setupBrokerDone = false;
    }
protected function close()
    {
        if (!$this->context) {
            return;
        }

        $this->context->close();
        $this->context = null;
        $this->setupBrokerDone = false;
    }
protected function close ( ) { if ( ! $ this -> context ) { return ; } $ this -> context -> close ( ) ; $ this -> context = null ; $ this -> setupBrokerDone = false ; }
Closes connection and channel.
Closes connection and channel .