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/BoxItem.php
<?php
/**
 * Copyright © Extmag. All rights reserved.
 */

namespace Extmag\Shiplab\Helper\BoxPacker;

use DVDoug\BoxPacker\Item;

class BoxItem implements Item
{
    /**
     * @var int
     */
    protected $id;

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

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

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

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

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

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

    /**
     * @var float
     */
    protected $price;

    /**
     * @param int $id
     * @param string $description
     * @param int $width
     * @param int $length
     * @param int $depth
     * @param int $weight
     * @param int $keepFlat
     * @param float $price
     */
    public function __construct($id, $description, $width, $length, $depth, $weight, $keepFlat, $price)
    {
        $this->id = $id;
        $this->description = $description;
        $this->width = $width;
        $this->length = $length;
        $this->depth = $depth;
        $this->weight = $weight;
        $this->keepFlat = $keepFlat;
        $this->price = $price;
    }

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

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

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

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

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

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

    /**
     * @inheritDoc
     */
    public function getKeepFlat(): bool
    {
        return $this->keepFlat;
    }

    /**
     * Item price
     *
     * @return float
     */
    public function getPrice(): float
    {
        return $this->price;
    }
}

Spamworldpro Mini