• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Message/ParamArray.php
  • Класс: BitrixImV2MessageParamArray
  • Вызов: ParamArray::setType
public function setType(string $type): self
{
	if ($this->type != $type)
	{
		$this->markChanged();
	}
	$this->type = $type;
	foreach ($this as $param)
	{
		switch ($this->type)
		{
			case Param::TYPE_INT_ARRAY:
				$param->setType(Param::TYPE_INT);
				break;

			case Param::TYPE_STRING_ARRAY:
				$param->setType(Param::TYPE_STRING);
		}
	}

	return $this;
}