Метод resolveAnchorMessage
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
516–521
~/bitrix/modulesim/lib/V2/Integration/AI/TaskCreation/MultipleMessagesCreator.php
Исходный код
Сигнатура метода
public static function resolveAnchorMessage(MessageCollection $messages): Message
Возвращает:
Message
Описание
Resolves the anchor for an already-loaded selection, preferring a surviving message: the newest message that still exists in the collection, or any survivor, falling back to a bare Message keyed by the formal anchor id only for an empty collection. Both the live creator and the queue job must resolve it from the real collection the same way, so terminal statuses target one and the same message id.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$messages
|
MessageCollection
|
-
|
-
|