code: public function close()
      {
          if (isset($this->channel))
              $this->channel->close();
          if (isset($this->AMQPConnection))
              $this->AMQPConnection->close();
      }
docs: Close the connection with the RabbitMQ server
  
  @return void