• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/Params.php
  • Класс: BitrixImV2MessageParams
  • Вызов: Params::getType
static function getType(string $paramName): array
{
	self::initTypes();

	if (isset(self::$typeMap[$paramName]))
	{
		$type = self::$typeMap[$paramName];
		if (!isset($type['className']))
		{
			if ($type['type'] == Param::TYPE_INT_ARRAY || $type['type'] == Param::TYPE_STRING_ARRAY)
			{
				$type['className'] = ParamArray::class;
			}
			elseif ($type['type'] == Param::TYPE_DATE_TIME)
			{
				$type['className'] = ParamDateTime::class;
			}
			else
			{
				$type['className'] = Param::class;
			}
		}
	}
	else
	{
		$type = [
			'className' => Param::class,
			'type' => Param::TYPE_STRING,
		];
	}

	return $type;
}