Класс ReplyValidator
Policy: validates that a reply reference is valid for the given target chat. Contract TPL-01: - validate(int $replyId, Chat $targetChat): Result - replyId <= 0 → success, empty result (reply absent — valid) - no access to original → addErrors(checkAccess()->getErrors()) - original.chat !== targetChat → MessageError::REPLY_ERROR - success → getResult()['REPLY_ID'] = int Invariants: - Does NOT write to storage and does NOT mutate messages. - Single source of truth for reply-link validation (no duplication allowed elsewhere).
class
Полное имя класса
Bitrix\Im\V2\Message\Reply\ReplyValidator
Методы
Методы и их характеристики