AMQPExchange
PHP Manual

AMQPExchange::__construct

(PECL amqp >= Unknown)

AMQPExchange::__constructCreate an instance of AMQPExchange

Descrizione

public AMQPExchange::__construct ( AMQPChannel $amqp_channel )

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

Elenco dei parametri

AMQPChannel

A valid AMQPChannel object, connected to a broker.

Valori restituiti

An AMQPExchange object.

Errori/Eccezioni

Throws AMQPExchangeException when amqp_channel is not connected to a broker.

Throws AMQPConnectionException if the connection to the broker was lost.


AMQPExchange
PHP Manual