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