Метод getChatWith

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 131–199
~/bitrix/modulesim/lib/V2/Entity/User/User.php

Исходный код

PHP
public

Сигнатура метода

public function getChatWith(int $userId, bool $createIfNotExist = true): ?PrivateChat

Возвращает: ?PrivateChat

Описание

Return chat with user AND create chat if it does not exist

Параметры

2
Имя Тип По умолчанию Флаги
$userId int -
-
$createIfNotExist bool true
-