• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/protobuf/response.php
  • Класс: BitrixPullProtobufResponse
  • Вызов: Response::merge
public function merge(ProtobufMessage $message)
    {
        if ( ! $message instanceof BitrixPullProtobufResponse) {
            throw new InvalidArgumentException(sprintf('Argument 1 passed to %s must be a %s, %s given', __METHOD__, __CLASS__, get_class($message)));
        }

        $this->outgoingMessages = ($message->outgoingMessages !== null) ? $message->outgoingMessages : $this->outgoingMessages;
        $this->channelStats = ($message->channelStats !== null) ? $message->channelStats : $this->channelStats;
        $this->serverStats = ($message->serverStats !== null) ? $message->serverStats : $this->serverStats;
    }