Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
PropertyFeatureFactory.php
1
<?php
2
3
namespace
Bitrix\Catalog\v2\PropertyFeature
;
4
5
use
Bitrix\Catalog\v2\IoC\ContainerContract
;
6
15
class
PropertyFeatureFactory
16
{
17
public
const
PROPERTY_FEATURE
= PropertyFeature::class;
18
public
const
PROPERTY_FEATURE_COLLECTION
= PropertyFeatureCollection::class;
19
20
protected
$container
;
21
27
public
function
__construct
(
ContainerContract
$container
)
28
{
29
$this->container =
$container
;
30
}
31
35
public
function
createEntity
():
PropertyFeature
36
{
37
return
$this->container->make(self::PROPERTY_FEATURE);
38
}
39
43
public
function
createCollection
():
PropertyFeatureCollection
44
{
45
return
$this->container->make(self::PROPERTY_FEATURE_COLLECTION);
46
}
47
}
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureCollection
Definition
PropertyFeatureCollection.php:17
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureFactory
Definition
PropertyFeatureFactory.php:16
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureFactory\createEntity
createEntity()
Definition
PropertyFeatureFactory.php:35
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureFactory\__construct
__construct(ContainerContract $container)
Definition
PropertyFeatureFactory.php:27
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureFactory\$container
$container
Definition
PropertyFeatureFactory.php:20
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureFactory\PROPERTY_FEATURE
const PROPERTY_FEATURE
Definition
PropertyFeatureFactory.php:17
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureFactory\PROPERTY_FEATURE_COLLECTION
const PROPERTY_FEATURE_COLLECTION
Definition
PropertyFeatureFactory.php:18
Bitrix\Catalog\v2\PropertyFeature\PropertyFeatureFactory\createCollection
createCollection()
Definition
PropertyFeatureFactory.php:43
Bitrix\Catalog\v2\PropertyFeature\PropertyFeature
Definition
PropertyFeature.php:17
Bitrix\Catalog\v2\IoC\ContainerContract
Definition
ContainerContract.php:15
Bitrix\Catalog\v2\PropertyFeature
Definition
HasPropertyFeatureCollection.php:3
modules
catalog
lib
v2
PropertyFeature
PropertyFeatureFactory.php
Создано системой
1.10.0