Factory::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Factory
  4. __construct
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Relation/StorageStrategy/Factory.php
  • Класс: Bitrix\Crm\Relation\StorageStrategy\Factory
  • Вызов: Factory::__construct
public function __construct(Service\Factory $childFactory, string $parentIdFieldName)
{
	if (!$childFactory->isFieldExists($parentIdFieldName))
	{
		throw new ArgumentException(
			'The provided field does not exist in ' . get_class($childFactory), 'fieldName'
		);
	}

	$this->childFactory = $childFactory;
	$this->parentIdFieldName = $parentIdFieldName;
}

Добавить комментарий