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