Метод shrink
Сигнатура метода
public function shrink(array $values, int $limit): string
Возвращает:
string
Описание
Encodes the map dropping trailing entries, and then cutting the value of the last one left, until the result fits the snapshot size limit. The returned JSON is never longer than the limit. A map from collect() already fits, so this is the safeguard for a map assembled elsewhere or for a single entry bigger than the whole limit.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$values
|
array
|
—
|
—
|
$limit
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Service/LastValues/ValuesCollector.php
Расположение метода в файле
Строки
107–140