Метод create
Сигнатура метода
public static function create(HttpRequest $httpRequest, string $dtoClass, array $options = []): Request
Возвращает:
Request
Описание
Refuses a confirmation that is not a boolean, by the raw value of the body: the property is typed, so by the time it is read the coercion has already happened. The refusal is the one the framework raises for a field of the wrong type, the way {@see FormRequestMapper} raises it for an unreadable version, so the answer names the property and stays the documented one. A body carrying no confirmation at all, and one carrying null, keep the default: those are the two the hydrator itself reads as an absent property, and neither says the removal is meant.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$httpRequest
|
HttpRequest
|
—
|
—
|
$dtoClass
|
string
|
—
|
—
|
$options
|
array
|
[]
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/Request/Form/DeleteFormRequest.php