Свойство | Type | Description | |
---|---|---|---|
$boxes | DVDoug\BoxPacker\BoxList | List of box sizes available to pack items into | |
$items | List of items to be packed |
Méthode | Description | |
---|---|---|
__construct ( ) | Constructor | |
addBox ( DVDoug\BoxPacker\Box $box ) | Add box size | |
addItem ( DVDoug\BoxPacker\Item $item, integer $qty = 1 ) | Add item to be packed | |
doVolumePacking ( ) : DVDoug\BoxPacker\PackedBoxList | Pack items into boxes using the principle of largest volume item first | |
pack ( ) : DVDoug\BoxPacker\PackedBoxList | Pack items into boxes | |
setBoxes ( DVDoug\BoxPacker\BoxList $boxList ) | Add a pre-prepared set of boxes all at once | |
setItems ( Traversable | array $items ) | Set a list of items all at once |
public addBox ( DVDoug\BoxPacker\Box $box ) | ||
$box | DVDoug\BoxPacker\Box |
public doVolumePacking ( ) : DVDoug\BoxPacker\PackedBoxList | ||
Résultat | DVDoug\BoxPacker\PackedBoxList |
public pack ( ) : DVDoug\BoxPacker\PackedBoxList | ||
Résultat | DVDoug\BoxPacker\PackedBoxList |
public setBoxes ( DVDoug\BoxPacker\BoxList $boxList ) | ||
$boxList | DVDoug\BoxPacker\BoxList |
public setItems ( Traversable | array $items ) | ||
$items | Traversable | array |
protected BoxList,DVDoug\BoxPacker $boxes | ||
Résultat | DVDoug\BoxPacker\BoxList |