setDestination() публичный Метод

This method sets destination only if it was not set already. To force replacement $reassing flag needs to be set to true.
public setDestination ( string $destination, boolean $reassign = false ) : Kraken\Channel\Protocol\ProtocolInterface
$destination string
$reassign boolean
Результат Kraken\Channel\Protocol\ProtocolInterface
Пример #1
0
 /**
  * @param string $name
  * @param ProtocolInterface $message
  * @param int $flags
  * @return bool
  */
 protected function handleSendAsync($name, $message, $flags = Channel::MODE_DEFAULT)
 {
     if ($message->getType() === '') {
         $message->setType(Channel::TYPE_SND);
     }
     if ($message->getDestination() === '') {
         $message->setDestination($name);
     }
     return $this->getOutput()->handle($name, $message, $flags);
 }