/** * Create an instance of an AMQPChannel object. * * @param AMQPConnection $amqp_connection An instance of AMQPConnection * with an active connection to a * broker. * * @throws AMQPConnectionException If the connection to the broker * was lost. */ public function __construct(AMQPConnection $amqp_connection) { $this->connection = $amqp_connection; $this->channel = $amqp_connection->_getConnection()->channel(); $this->prefetch_count = 0; $this->prefetch_size = 0; }