PHP Class DVDoug\BoxPacker\OrientatedItem

Author: Doug Wright
Show file Open project: dvdoug/boxpacker Class Usage Examples

Protected Properties

Property Type Description
$depth integer
$item DVDoug\BoxPacker\Item
$length integer
$width integer

Public Methods

Method Description
__construct ( DVDoug\BoxPacker\Item $item, integer $width, integer $length, integer $depth ) Constructor.
getDepth ( ) : integer Item depth in mm in it's packed orientation
getItem ( ) : DVDoug\BoxPacker\Item Item
getLength ( ) : integer Item length in mm in it's packed orientation
getWidth ( ) : integer Item width in mm in it's packed orientation

Method Details

__construct() public method

Constructor.
public __construct ( DVDoug\BoxPacker\Item $item, integer $width, integer $length, integer $depth )
$item DVDoug\BoxPacker\Item
$width integer
$length integer
$depth integer

getDepth() public method

Item depth in mm in it's packed orientation
public getDepth ( ) : integer
return integer

getItem() public method

Item
public getItem ( ) : DVDoug\BoxPacker\Item
return DVDoug\BoxPacker\Item

getLength() public method

Item length in mm in it's packed orientation
public getLength ( ) : integer
return integer

getWidth() public method

Item width in mm in it's packed orientation
public getWidth ( ) : integer
return integer

Property Details

$depth protected property

protected int $depth
return integer

$item protected property

protected Item,DVDoug\BoxPacker $item
return DVDoug\BoxPacker\Item

$length protected property

protected int $length
return integer

$width protected property

protected int $width
return integer