Метод mapExpectedVersion
Сигнатура метода
public function mapExpectedVersion(string $updatedTime): DateTime
Возвращает:
DateTime
Описание
The version of the form a write expects to write over, as every write of the family carries it: {@see UpdateFormRequest::$updatedTime} and the same property of the write of the embedding. The value arrives as the string the transport delivered, read here with the same converter REST V3 uses for a typed date of a DTO. A value it does not read as a date is refused with the very refusal the framework raises for a field of the wrong type, so the answer stays the one the published contract documents no matter which side did the reading.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$updatedTime
|
string
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/Dto/Mapping/Form/FormRequestMapper.php