DVDoug\BoxPacker\VolumePacker::__construct PHP Метод

__construct() публичный Метод

Constructor
public __construct ( DVDoug\BoxPacker\Box $box, ItemList $items )
$box DVDoug\BoxPacker\Box
$items ItemList
    public function __construct(Box $box, ItemList $items)
    {
        $this->logger = new NullLogger();
        $this->box = $box;
        $this->items = $items;
        $this->depthLeft = $this->box->getInnerDepth();
        $this->remainingWeight = $this->box->getMaxWeight() - $this->box->getEmptyWeight();
        $this->widthLeft = $this->box->getInnerWidth();
        $this->lengthLeft = $this->box->getInnerLength();
    }