Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
packer.php
1
<?
2
namespace
Bitrix\Sale\Delivery\Packing
;
3
8
class
Packer
9
{
16
public
static
function
countMinContainerSize
(array $boxesSizes)
17
{
18
if
(count($boxesSizes) == 0)
19
return
array(0,0,0);
20
21
if
(count($boxesSizes) == 1)
22
return
current($boxesSizes);
23
24
$container =
new
Container
();
25
26
foreach
($boxesSizes as $box)
27
$container->addBox($box);
28
29
return
$container->getFilledDimensions();
30
}
31
}
Bitrix\Sale\Delivery\Packing\Container
Definition
container.php:12
Bitrix\Sale\Delivery\Packing\Packer
Definition
packer.php:9
Bitrix\Sale\Delivery\Packing\Packer\countMinContainerSize
static countMinContainerSize(array $boxesSizes)
Definition
packer.php:16
Bitrix\Sale\Delivery\Packing
Definition
box.php:2
modules
sale
lib
delivery
packing
packer.php
Создано системой
1.10.0