mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
60 lines
1.0 KiB
PHP
60 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Orders\DataTransferObjects;
|
|
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
use App\Classes\ValueObjects\Constants\ApprovalStatus;
|
|
|
|
class OrderObject implements DataTransferObject
|
|
{
|
|
|
|
/** @var int */
|
|
private $reference;
|
|
|
|
/** @var int */
|
|
private $type;
|
|
|
|
/** @var int|null */
|
|
private $status;
|
|
|
|
/**
|
|
* OrderObject constructor.
|
|
* @param int $reference
|
|
* @param int $type
|
|
* @param int|null $status
|
|
*/
|
|
public function __construct(int $reference, int $type, ?int $status = ApprovalStatus::PENDING_VERIFICATION)
|
|
{
|
|
$this->reference = $reference;
|
|
$this->type = $type;
|
|
$this->status = $status;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getReference(): int
|
|
{
|
|
return $this->reference;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getType(): int
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getStatus(): int
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
|
|
}
|