Example #1
0
 /**
  * @inheritdoc
  */
 public function getConnection() : ConnectionInterface
 {
     return $this->channel->getConnection();
 }
Example #2
0
 /**
  * @return ChannelInterface
  */
 public function newChannel() : ChannelInterface
 {
     $channel = new Channel($this, $this->getResource()->channel());
     $channel->setPrefetchCount(3);
     $channel->setPrefetchSize(0);
     return $channel;
 }