• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/entity/location.php
  • Класс: BitrixLocationEntityLocation
  • Вызов: Location::setType
public function setType(int $type): self
{
	if(!Type::isValueExist($type))
	{
		throw new ArgumentOutOfRangeException('Wrong location type');
	}

	$this->type = $type;
	return $this;
}