Kraken\Channel\Protocol\ProtocolInterface::getType PHP Метод

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

Return protocol type.
public getType ( ) : string
Результат string
    public function getType();

Usage Example

Пример #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);
 }
All Usage Examples Of Kraken\Channel\Protocol\ProtocolInterface::getType