Метод toDeadline

public static

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

public static function toDeadline(mixed $value): ?DateTime

Возвращает: ?DateTime

Описание

The real deadline the value stands for, or null when there is none: nothing given, an empty value, or the sentinel. A literal that is not a date reads as no deadline instead of raising: this is the guarded read of a tail step, and a step of the tail that threw would only log the throw and carry on anyway, having skipped the effect it was there to perform.

Параметры

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

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Service/Activity/Pipeline/Step/Shared/DeadlineSentinelGuard.php
Расположение метода в файле
Строки 117–143

Исходный код

PHP