Метод setEnum

public

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

public function setEnum(array $enum): static

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

Описание

Limits the value to one of the listed JSON Schema enum values. For nullable properties, include null in the enum list if null is allowed as a value.

Параметры

1
Имя Тип По умолчанию Флаги
$enum array —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Integration/AiAssistant/Mcp/InputScheme/Properties/Validation/EnumValidationTrait.php
Расположение метода в файле
Строки 18–29

Исходный код

PHP