• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/entity/source/configitem.php
  • Класс: BitrixLocationEntitySourceConfigItem
  • Вызов: ConfigItem::__construct
public function __construct(string $code, string $type)
{
	$this->code = $code;

	if (!in_array($type, [static::STRING_TYPE, static::BOOL_TYPE]))
	{
		throw new RuntimeException(sprintf('Unexpected config item type - %s', $type));
	}
	$this->type = $type;
}