PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

AMQPExchange::__construct

(PECL amqp >= Unknown)

AMQPExchange::__constructCreate an instance of AMQPExchange

Description

public AMQPExchange::__construct ( AMQPChannel $amqp_channel )

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

Parameters

AMQPChannel

A valid AMQPChannel object, connected to a broker.

Return Values

An AMQPExchange object.

Errors/Exceptions

Throws AMQPExchangeException when amqp_channel is not connected to a broker.

Throws AMQPConnectionException if the connection to the broker was lost.

PHP Manual