• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Dto/Caster/CollectionCaster.php
  • Класс: Bitrix\Crm\Dto\Caster\CollectionCaster
  • Вызов: CollectionCaster::castSingleValue
protected function castSingleValue($value)
{
	$result = [];

	if (is_array($value))
	{
		foreach ($value as $key => $singleVal)
		{
			if ($this->isNullable && $singleVal === null)
			{
				$result[$key] = $singleVal;
			}
			else
			{
				$result[$key] = $this->singleValueCaster->castSingleValue($singleVal);
			}
		}
	}
	return $result;
}