Метод __construct
Сигнатура метода
public function __construct(string|ValidValuesProviderInterface $provider, array $contextArgs = [], bool $strict = false, string|LocalizableMessageInterface|null $errorMessage = null, bool $showValues = false, array $groups = [], ?int $maxElements = null)
Параметры
7| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$provider
|
string|ValidValuesProviderInterface
|
—
|
—
|
$contextArgs
|
array
|
[]
|
—
|
$strict
|
bool
|
false
|
—
|
$errorMessage
|
string|LocalizableMessageInterface|null
|
null
|
—
|
$showValues
|
bool
|
false
|
—
|
$groups
|
array
|
[]
|
—
|
$maxElements
|
?int
|
null
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/Validation/Rule/ElementsInArrayFrom.php
Расположение метода в файле
Строки
17–28