AMQPExchange
在线手册:中文  英文

AMQPExchange::__construct

(PECL amqp >= Unknown)

AMQPExchange::__constructCreate an instance of AMQPExchange

说明

public AMQPExchange::__construct ( AMQPChannel $amqp_channel )

Returns a new instance of an AMQPExchange object, associated with the given AMQPChannel object.

参数

AMQPChannel

A valid AMQPChannel object, connected to a broker.

返回值

An AMQPExchange object.

错误/异常

Throws AMQPExchangeException when amqp_channel is not connected to a broker.

Throws AMQPConnectionException if the connection to the broker was lost.


AMQPExchange
在线手册:中文  英文
易百教程