• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/Param.php
  • Класс: BitrixImV2MessageParam
  • Вызов: Param::setType
public function setType(string $type): self
{
	switch ($type)
	{
		case Param::TYPE_INT_ARRAY:
			$type = Param::TYPE_INT;
			break;

		case Param::TYPE_STRING_ARRAY:
			$type = Param::TYPE_STRING;
	}
	if ($this->type != $type)
	{
		$this->markChanged();
	}
	$this->type = $type;

	return $this;
}