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