$id
$id : mixed
A class representative of a single bin to put @see Item into.
$id : mixed
$length : float
$breadth : float
$height : float
$volume : float
$weight : float
$fittedItems : iterable
$totalFittedVolume : float
$totalFittedWeight : float
__construct(mixed $id, float $length, float $height, float $breadth, float $weight) : mixed
mixed | $id | The identifier of the bin. |
float | $length | The length of the bin. |
float | $height | The height of the bin. |
float | $breadth | The breadth of the bin. |
float | $weight | The weight of the bin. |
putItemPosition(\BinContainerPacking\Item $item, array $position) : bool
按位置装箱
\BinContainerPacking\Item | $item | The item to put into. |
array | $position | The starting position. |
The flag indicates whether the item can fit into the bin or not, return true if the item can fit into the bin, otherwise false.