method public static

LeadSumStatisticEntry::nullSafeCompareDates()

Класс: \Bitrix\Crm\Statistics\LeadSumStatisticEntry

Сигнатура

public static nullSafeCompareDates([Date|null $first = null ][, Date|null $second = null ]) : int

Описание

Возвращает значение меньше 0, если первая дата раньше второй.
Возвращает 0, если они равны.
Возвращает значение больше 0, если первая дата позже второй.

Параметры

$first Date|null = null
Первая дата.
$second Date|null = null
Вторая дата.

Возвращаемое значение

int

Как применяется в LeadSumStatisticEntry

LeadSumStatisticEntry::nullSafeCompareDates() — метод класса \Bitrix\Crm\Statistics\LeadSumStatisticEntry модуля «CRM».

Статический метод — вызывается через имя класса LeadSumStatisticEntry, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\Crm\Statistics\LeadSumStatisticEntry;

Loader::includeModule('crm');

$result = LeadSumStatisticEntry::nullSafeCompareDates();
// $result: int

Другие методы LeadSumStatisticEntry

nullSafeCompareDates() есть и у других классов модуля «CRM»: ActivityChannelStatisticEntry, DealChannelStatisticEntry, DealSumStatisticEntry, InvoiceSumStatisticEntry, LeadChannelStatisticEntry, StatisticEntryBase.

Исходный файл: source/crm/lib/statistics/leadsumstatisticentry.php:104

Что будем искать? Например,Продвижение