Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
BaseIblockElementFactory.php
1<?php
2
3namespace Bitrix\Catalog\v2;
4
8
18{
20 protected $container;
22 protected $iblockInfo;
23
31 {
32 $this->container = $container;
33 $this->iblockInfo = $iblockInfo;
34 }
35
40 abstract public function createEntity(string $entityClass): BaseIblockElementEntity;
41
42 protected function makeEntity(string $entityClass): BaseIblockElementEntity
43 {
44 return $this->container->make($entityClass, [
45 Dependency::IBLOCK_INFO => $this->iblockInfo,
46 ]);
47 }
48}
__construct(ContainerContract $container, IblockInfo $iblockInfo)