Example #1
0
 /**
  * Disconnects from the message broker
  */
 public function disconnect()
 {
     if ($this->connection !== null) {
         $this->channel->close();
         $this->connection->close();
     }
     return $this;
 }