/** * @inheritdoc */ public function createQueue(ChannelInterface $channel, $name = null, $flags = null, array $args = []) { $delegate = new \AMQPQueue($channel->getDelegate()); $delegate->setFlags(Queue::convertToDelegateFlags($flags)); $delegate->setArguments($args); if (null !== $name) { $delegate->setName($name); } return new Queue($delegate, $channel); }
/** * @inheritdoc */ public function getConnection() { return $this->channel->getConnection(); }
/** * @inheritdoc */ protected function getDelegate(ChannelInterface $channel) { return new \AMQPExchange($channel->getDelegate()); }