AMQPExchange
PHP 手册

AMQPExchange::setType

(PECL amqp >= Unknown)

AMQPExchange::setTypeSet the type of the exchange

说明

public string AMQPExchange::setType ( string $exchange_type )

Set the type of the exchange. This can be any of AMQP_EX_TYPE_DIRECT, AMQP_EX_TYPE_FANOUT, AMQP_EX_TYPE_HEADER or AMQP_EX_TYPE_TOPIC.

Warning

本函数还未编写文档,仅有参数列表。

参数

exchange_type

The type of exchange as a string.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE


AMQPExchange
PHP 手册