Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
storetree.php
1
<?php
2
namespace
Bitrix\Catalog\Product\Store\BatchBalancer
;
3
4
use
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem
;
5
6
12
final
class
StoreTree
extends
InventoryTree
13
{
14
public
function
push
(
StoreItem
$item): void
15
{
16
$this->append($item);
17
}
18
19
public
function
getByHash
(
string
$hash): ?
StoreItem
20
{
21
foreach
($this->getIterator() as $item)
22
{
23
if
($item->getHash() === $hash)
24
{
25
return
$item;
26
}
27
}
28
29
return
null
;
30
}
31
}
Bitrix\Catalog\Product\Store\BatchBalancer\Entity\StoreItem
Definition
storeitem.php:13
Bitrix\Catalog\Product\Store\BatchBalancer\InventoryTree
Definition
inventorytree.php:14
Bitrix\Catalog\Product\Store\BatchBalancer\StoreTree
Definition
storetree.php:13
Bitrix\Catalog\Product\Store\BatchBalancer\StoreTree\push
push(StoreItem $item)
Definition
storetree.php:14
Bitrix\Catalog\Product\Store\BatchBalancer\StoreTree\getByHash
getByHash(string $hash)
Definition
storetree.php:19
Bitrix\Catalog\Product\Store\BatchBalancer
Definition
balancer.php:2
modules
catalog
lib
product
store
batchbalancer
storetree.php
Создано системой
1.10.0