mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 12:34:03 +00:00
82 lines
1.4 KiB
PHP
82 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Orders\DataTransferObjects;
|
|
|
|
|
|
class PackageObject
|
|
{
|
|
|
|
/** @var string */
|
|
private $description;
|
|
|
|
/** @var integer */
|
|
private $quantity;
|
|
|
|
/** @var integer */
|
|
private $width;
|
|
|
|
/** @var integer */
|
|
private $height;
|
|
|
|
/** @var integer */
|
|
private $length;
|
|
|
|
/**
|
|
* PackageObject constructor.
|
|
* @param string $description
|
|
* @param int $quantity
|
|
* @param int $width
|
|
* @param int $height
|
|
* @param int $length
|
|
*/
|
|
public function __construct(string $description, int $quantity, int $width, int $height, int $length)
|
|
{
|
|
$this->description = $description;
|
|
$this->quantity = $quantity;
|
|
$this->width = $width;
|
|
$this->height = $height;
|
|
$this->length = $length;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDescription(): string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getQuantity(): int
|
|
{
|
|
return $this->quantity;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getWidth(): int
|
|
{
|
|
return $this->width;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getHeight(): int
|
|
{
|
|
return $this->height;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getLength(): int
|
|
{
|
|
return $this->length;
|
|
}
|
|
|
|
|
|
} |