public function __construct(AbstractConnection $connection) { $this->connection = $connection; $this->channel = $this->connection->channel(); }