Метод assertPortId

private static

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

private static function assertPortId(string $type, string $construct, mixed $port, ActivityPortType $expected = ActivityPortType::Output): void

Возвращает: void

Описание

Ports come in two families, and each has its own constructs: control flow leaves the output ports ('branches', 'fanout'), the aux ports bind nodes to the activity ('attachments'). A port of the other family names the construct the author meant, so the refusal names it too.

Параметры

4
Имя Тип По умолчанию Флаги
$type string —
—
$construct string —
—
$port mixed —
—
$expected ActivityPortType ActivityPortType::Output
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/AI/Agent/Generator/AgentConfig/StepConfig.php
Расположение метода в файле
Строки 757–782

Исходный код

PHP