/**
  * @throws AMQPServerConnectionException
  * @return AMQPBaseChannel
  **/
 protected function checkConnection()
 {
     if (!$this->transport->getLink()->isConnected()) {
         throw new AMQPServerConnectionException("No connection available");
     }
     return $this;
 }
 public function __construct(AMQPCredentials $credentials)
 {
     parent::__construct($credentials);
     $this->fillCredentials();
 }