Метод compareAndSetState
Сигнатура метода
public function compareAndSetState(int $id, array $expectedStates, ManagedAgentInstanceState $state, DateTime $updatedAt): bool
Возвращает:
bool
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$id
|
int
|
—
|
—
|
$expectedStates
|
array
|
—
|
—
|
$state
|
ManagedAgentInstanceState
|
—
|
—
|
$updatedAt
|
DateTime
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Repository/AiAgent/ManagedAgentInstanceRepository.php
Расположение метода в файле
Строки
178–212