/** * Sets an exchange point as a target to publish messages to * * @param string $name The exchange name * @param string $type The exchange type (direct, fanout, topic, headers) * @param bool $durable Indicates if the durable feature should be enabled */ public function setExchangeTarget($name, $type = 'topic', $durable = false) { $this->targetName = $name; $this->channel->exchange_declare($name, $type, false, $durable, false); return $this; }