getConnection() public method

Get the AMQPConnection object in use
public getConnection ( ) : AMQPConnection
return AMQPConnection
Exemplo n.º 1
0
 /**
  * Get the AMQPConnection object in use
  *
  * @return AMQPConnection
  */
 public function getConnection()
 {
     return $this->channel->getConnection();
 }
Exemplo n.º 2
0
 public static function castChannel(\AMQPChannel $c, array $a, Stub $stub, $isNested)
 {
     $prefix = Caster::PREFIX_VIRTUAL;
     $a += array($prefix . 'isConnected' => $c->isConnected(), $prefix . 'channelId' => $c->getChannelId(), $prefix . 'prefetchSize' => $c->getPrefetchSize(), $prefix . 'prefetchCount' => $c->getPrefetchCount(), $prefix . 'connection' => $c->getConnection());
     return $a;
 }
 /**
  * @return mixed
  */
 public function close()
 {
     $this->channel->getConnection()->disconnect();
 }