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