mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-21 13:34:00 +00:00
94 lines
1.7 KiB
PHP
94 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\PackingLists\DataTransferObjects;
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
|
|
class PackageObject implements DataTransferObject
|
|
{
|
|
|
|
private $orderId;
|
|
|
|
private $claimantId;
|
|
|
|
private $type;
|
|
|
|
private $description;
|
|
|
|
private $width;
|
|
|
|
private $height;
|
|
|
|
private $length;
|
|
|
|
private $weight;
|
|
|
|
private $quantity;
|
|
|
|
private $status;
|
|
|
|
public function __construct(int $orderId, ?int $claimantId, int $type, ?string $description, float $width, float $height, float $length, float $weight, int $quantity, int $status)
|
|
{
|
|
$this->orderId = $orderId;
|
|
$this->claimantId = $claimantId;
|
|
$this->type = $type;
|
|
$this->description = $description;
|
|
$this->width = $width;
|
|
$this->height = $height;
|
|
$this->length = $length;
|
|
$this->weight = $weight;
|
|
$this->quantity = $quantity;
|
|
$this->status = $status;
|
|
}
|
|
|
|
public function getOrderId(): int
|
|
{
|
|
return $this->orderId;
|
|
}
|
|
|
|
public function getClaimantId(): ?int
|
|
{
|
|
return $this->claimantId;
|
|
}
|
|
|
|
public function getType(): int
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
public function getDescription(): ?string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
public function getWidth(): float
|
|
{
|
|
return $this->width;
|
|
}
|
|
|
|
public function getHeight(): float
|
|
{
|
|
return $this->height;
|
|
}
|
|
|
|
public function getLength(): float
|
|
{
|
|
return $this->length;
|
|
}
|
|
|
|
public function getWeight(): float
|
|
{
|
|
return $this->weight;
|
|
}
|
|
|
|
public function getQuantity(): int
|
|
{
|
|
return $this->quantity;
|
|
}
|
|
|
|
public function getStatus(): int
|
|
{
|
|
return $this->status;
|
|
}
|
|
}
|