Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
StoreProductFactory.php
1<?php
2
4
6
16{
18 public const STORE_PRODUCT_COLLECTION = StoreProductCollection::class;
19
20 protected $container;
21
28 {
29 $this->container = $container;
30 }
31
35 public function createEntity(): StoreProduct
36 {
37 return $this->container->make(self::STORE_PRODUCT);
38 }
39
44 {
45 return $this->container->make(self::STORE_PRODUCT_COLLECTION);
46 }
47}