Пример #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function handleReceive($sender, $multipartMessage)
 {
     $protocol = $this->encoder->with(new Protocol())->decode(implode('', $multipartMessage));
     if ($this->handleReceiveRequest($protocol)) {
         return;
     }
     if ($this->handleReceiveResponse($protocol) || $this->getInput()->handle($sender, $protocol)) {
         return;
     }
 }