getConnection() public method

Get the AMQPConnection object in use
public getConnection ( ) : AMQPConnection
return AMQPConnection
 /**
  * Get the AMQPConnection object in use
  *
  * @return AMQPConnection
  */
 public function getConnection()
 {
     return $this->channel->getConnection();
 }
示例#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();
 }