Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/extmag/shiplab/Helper/BoxPacker/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/extmag/shiplab/Helper/BoxPacker/Box.php
<?php
/**
 * Copyright © Extmag. All rights reserved.
 */

namespace Extmag\Shiplab\Helper\BoxPacker;

use DVDoug\BoxPacker\LimitedSupplyBox;

class Box implements LimitedSupplyBox
{
    /**
     * @var int
     */
    protected $id;

    /**
     * @var string
     */
    protected $reference;

    /**
     * @var int
     */
    protected $outerWidth;

    /**
     * @var int
     */
    protected $outerLength;

    /**
     * @var int
     */
    protected $outerDepth;

    /**
     * @var int
     */
    protected $emptyWeight;

    /**
     * @var int
     */
    protected $innerWidth;

    /**
     * @var int
     */
    protected $innerLength;

    /**
     * @var int
     */
    protected $innerDepth;

    /**
     * @var int
     */
    protected $maxWeight;

    /**
     * @var int
     */
    protected $qty;

    /**
     * @var int
     */
    protected $isUsedDimensions;

    /**
     * @param int $id
     * @param string $reference
     * @param int $outerWidth
     * @param int $outerLength
     * @param int $outerDepth
     * @param int $emptyWeight
     * @param int $innerWidth
     * @param int $innerLength
     * @param int $innerDepth
     * @param int $maxWeight
     * @param int $qty
     * @param int $isUsedDimensions
     */
    public function __construct(
        $id,
        $reference,
        $outerWidth,
        $outerLength,
        $outerDepth,
        $emptyWeight,
        $innerWidth,
        $innerLength,
        $innerDepth,
        $maxWeight,
        $qty = 1000,
        $isUsedDimensions = 0
    ) {
        $this->id = $id;
        $this->reference = $reference;
        $this->outerWidth = $outerWidth;
        $this->outerLength = $outerLength;
        $this->outerDepth = $outerDepth;
        $this->emptyWeight = $emptyWeight;
        $this->innerWidth = $innerWidth;
        $this->innerLength = $innerLength;
        $this->innerDepth = $innerDepth;
        $this->maxWeight = $maxWeight;
        $this->qty = $qty;
        $this->isUsedDimensions = (int)$isUsedDimensions;
    }

    public function getId(): int
    {
        return $this->id;
    }

    /**
     * @inheritDoc
     */
    public function getReference(): string
    {
        return $this->reference;
    }

    /**
     * @inheritDoc
     */
    public function getOuterWidth(): int
    {
        return $this->outerWidth;
    }

    /**
     * @inheritDoc
     */
    public function getOuterLength(): int
    {
        return $this->outerLength;
    }

    /**
     * @inheritDoc
     */
    public function getOuterDepth(): int
    {
        return $this->outerDepth;
    }

    /**
     * @inheritDoc
     */
    public function getEmptyWeight(): int
    {
        return $this->emptyWeight;
    }

    /**
     * @inheritDoc
     */
    public function getInnerWidth(): int
    {
        return $this->innerWidth;
    }

    /**
     * @inheritDoc
     */
    public function getInnerLength(): int
    {
        return $this->innerLength;
    }

    /**
     * @inheritDoc
     */
    public function getInnerDepth(): int
    {
        return $this->innerDepth;
    }

    /**
     * @inheritDoc
     */
    public function getMaxWeight(): int
    {
        return $this->maxWeight;
    }

    /**
     * @inheritDoc
     */
    public function getQuantityAvailable(): int
    {
        return $this->qty;
    }

    public function getIsUsedDimensions(): int
    {
        return (int)$this->isUsedDimensions;
    }

}

Spamworldpro Mini