Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
packer.php
1<?
3
8class 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}
static countMinContainerSize(array $boxesSizes)
Definition packer.php:16