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