mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 12:34:18 +00:00
86 lines
1.8 KiB
PHP
86 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\OrderSteps\DataTransferObjects;
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
use Carbon\Carbon;
|
|
|
|
class OrderStepsObject implements DataTransferObject
|
|
{
|
|
private $id;
|
|
|
|
private $order_id;
|
|
|
|
private $appointee_id;
|
|
|
|
private $reference;
|
|
|
|
private $primary;
|
|
|
|
private $sequence;
|
|
|
|
private $status;
|
|
|
|
private $contract_status;
|
|
|
|
private $completed_date;
|
|
|
|
public function __construct(int $order_id, int $appointee_id, string $reference, bool $primary, float $sequence, int $status, int $contract_status, string $completed_date, int $id=0)
|
|
{
|
|
$this->order_id = $order_id;
|
|
$this->appointee_id = $appointee_id;
|
|
$this->reference = $reference;
|
|
$this->primary = $primary;
|
|
|
|
$this->sequence = $sequence;
|
|
$this->status = $status;
|
|
$this->contract_status = $contract_status;
|
|
$this->completed_date = $completed_date;
|
|
|
|
$this->id = $id;
|
|
}
|
|
|
|
public function getOrderId(): int
|
|
{
|
|
return $this->order_id;
|
|
}
|
|
|
|
public function getAppointeeId(): int
|
|
{
|
|
return $this->appointee_id;
|
|
}
|
|
public function getReference(): string
|
|
{
|
|
return $this->reference;
|
|
}
|
|
public function getPrimary(): bool
|
|
{
|
|
return $this->primary;
|
|
}
|
|
|
|
public function getSequence(): float
|
|
{
|
|
return $this->sequence;
|
|
}
|
|
|
|
public function getStatus(): int
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
public function getContractStatus(): int
|
|
{
|
|
return $this->contract_status;
|
|
}
|
|
|
|
public function getCompletedDate(): Carbon
|
|
{
|
|
return $this->completed_date ? Carbon::parse($this->completed_date) : Carbon::now();
|
|
}
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
} |