• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/geometry/type/collection.php
  • Класс: Bitrix\Location\Geometry\Type\Collection
  • Вызов: Collection::__construct
public function __construct(array $components = [])
{
	foreach ($components as $component)
	{
		if ($component instanceof BaseGeometry)
		{
			$this->components[] = $component;
		}
		else
		{
			throw new SystemException('Cannot create a collection with non-geometries');
		}
	}
}