Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
storeitem.php
1
<?php
2
namespace
Bitrix\Catalog\Product\Store\BatchBalancer\Entity
;
3
4
use Bitrix\Catalog\EO_StoreBatch;
5
use
Bitrix\Main\Result
;
6
12
final
class
StoreItem
implements
InventoryTreeItem
13
{
14
private
EO_StoreBatch $batch;
15
private
string
$hash;
16
public
function
__construct
(EO_StoreBatch $batch)
17
{
18
$this->batch = $batch;
19
20
$this->hash = md5(uniqid(rand(),
true
));
21
}
22
public
function
getStoreBatch
(): ?EO_StoreBatch
23
{
24
return
$this->batch;
25
}
26
27
public
function
getHash
(): string
28
{
29
return
$this->hash;
30
}
31
32
public
function
save
():
Result
33
{
34
return
$this->batch->save();
35
}
36
}
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem
Definition
storeitem.php:13
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem\getHash
getHash()
Definition
storeitem.php:27
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem\getStoreBatch
getStoreBatch()
Definition
storeitem.php:22
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem\__construct
__construct(EO_StoreBatch $batch)
Definition
storeitem.php:16
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem\save
save()
Definition
storeitem.php:32
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\Result
Definition
result.php:14
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\InventoryTreeItem
Definition
inventorytreeitem.php:12
Bitrix\Catalog\Product\Store\BatchBalancer\Entity
Definition
elementbatchitem.php:2
modules
catalog
lib
product
store
batchbalancer
entity
storeitem.php
Создано системой
1.10.0