Exemple #1
0
 public function setOutput(Core $core)
 {
     $alert = $this->alert;
     if ($alert->fromPeer()) {
         return;
     }
     $recordOut = $core->getOutDuplex()->getRecord();
     $payload = $alert->decode();
     $this->output = $recordOut->set('contentType', ContentType::ALERT)->set('payload', $payload)->decode();
 }