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

        $this->responses = ($message->responses !== null) ? $message->responses : $this->responses;
    }