$id
$id : mixed
A class representative of a single item to put into the @see Bin.
$id : mixed
$length : float
$breadth : float
$height : float
$volume : float
$weight : float
$rotationType : int
$position : array
__construct(mixed $id, float $length, float $height, float $breadth, float $weight) : mixed
mixed | $id | The identifier of the item. |
float | $length | The length of the item. |
float | $height | The height of the item. |
float | $breadth | The breadth of the item. |
float | $weight | The weight of the item. |
getDimension() : array
Get the item's dimension based on the rotation type.
In this case, it would return an array of 3 values representations of the x-axis, y-axis and z-axis (3d plane).
The item's dimension (for example = ['x-axis => 0, 'y-axis' => 0, 'z-axis' => 0]).