Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
storewithproductsinfocombiner.php
1
<?php
2
3
namespace
Bitrix\Catalog\Integration\Report\Handler\Chart\StoreInfoCombiner
;
4
5
use
Bitrix\Catalog\Integration\Report\StoreStock\Entity\Store\StoreInfo
;
6
use
Bitrix\Catalog\Integration\Report\StoreStock\Entity\Store\StoreWithProductsInfo
;
7
8
class
StoreWithProductsInfoCombiner
implements
StoreInfoCombiner
9
{
10
16
public
function
summarizeStores
(...$storesInfo):
StoreInfo
17
{
18
if
(count($storesInfo) === 0)
19
{
20
return
new
StoreWithProductsInfo
(0);
21
}
22
23
$outputStore =
new
StoreWithProductsInfo
($storesInfo[0]->getStoreId());
24
foreach
($storesInfo as $storeInfo)
25
{
26
$outputStore->addProduct(...$storeInfo->getProductList());
27
}
28
29
return
$outputStore;
30
}
31
}
Bitrix\Catalog\Integration\Report\Handler\Chart\StoreInfoCombiner\StoreWithProductsInfoCombiner
Definition
storewithproductsinfocombiner.php:9
Bitrix\Catalog\Integration\Report\Handler\Chart\StoreInfoCombiner\StoreWithProductsInfoCombiner\summarizeStores
summarizeStores(... $storesInfo)
Definition
storewithproductsinfocombiner.php:16
Bitrix\Catalog\Integration\Report\StoreStock\Entity\Store\StoreInfo
Definition
storeinfo.php:10
Bitrix\Catalog\Integration\Report\StoreStock\Entity\Store\StoreWithProductsInfo
Definition
storewithproductsinfo.php:8
Bitrix\Catalog\Integration\Report\Handler\Chart\StoreInfoCombiner\StoreInfoCombiner
Definition
storeinfocombiner.php:8
Bitrix\Catalog\Integration\Report\Handler\Chart\StoreInfoCombiner
Definition
storeinfocombiner.php:3
modules
catalog
lib
integration
report
handler
chart
storeinfocombiner
storewithproductsinfocombiner.php
Создано системой
1.10.0