Server IP : 85.193.89.191 / Your IP : 3.138.113.101 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/modules/catalog/lib/v2/StoreProduct/ |
Upload File : |
<?php namespace Bitrix\Catalog\v2\StoreProduct; use Bitrix\Catalog\v2\IoC\ContainerContract; /** * Class StoreProductFactory * * @package Bitrix\Catalog\v2\StoreProduct * * !!! This API is in alpha stage and is not stable. This is subject to change at any time without notice. * @internal */ class StoreProductFactory { public const STORE_PRODUCT = StoreProduct::class; public const STORE_PRODUCT_COLLECTION = StoreProductCollection::class; protected $container; /** * StoreFactory constructor. * * @param \Bitrix\Catalog\v2\IoC\ContainerContract $container */ public function __construct(ContainerContract $container) { $this->container = $container; } /** * @return \Bitrix\Catalog\v2\StoreProduct\StoreProduct */ public function createEntity(): StoreProduct { return $this->container->make(self::STORE_PRODUCT); } /** * @return \Bitrix\Catalog\v2\StoreProduct\StoreProductCollection */ public function createCollection(): StoreProductCollection { return $this->container->make(self::STORE_PRODUCT_COLLECTION); } }