Метод normalizeAggregateValue
Сигнатура метода
private function normalizeAggregateValue(mixed $value, AggregateFunction $function): int|float|string|null
Возвращает:
int|float|string|null
Описание
Types a fetched aggregate value to match the in-PHP fold: COUNT is an int, an empty aggregate (SQL NULL) stays null, SUM/AVG are float, MIN/MAX keep the source value (numeric ones cast to float, so money folds compare equal across both paths).
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$value
|
mixed
|
—
|
—
|
$function
|
AggregateFunction
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/integration/bizproc/datasource/datasourceprovider.php
Расположение метода в файле
Строки
712–730