public function close()
    {
        $this->stop = true;

        $this->getChannel()->close();
        $this->connection->close();
    }
public function close()
    {
        $this->stop = true;

        $this->getChannel()->close();
        $this->connection->close();
    }
public function close ( ) { $ this -> stop = true ; $ this -> getChannel ( ) -> close ( ) ; $ this -> connection -> close ( ) ; }
Close the connection

@return void
Close the connection