mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-27 08:24:39 +00:00
Assign contract obligations at Unity
This commit is contained in:
@@ -21,7 +21,11 @@ class OrderObject implements DataTransferObject
|
||||
|
||||
private $current_step;
|
||||
|
||||
public function __construct(int $company_module_id, ?string $reference, string $reference_contract, int $type, int $status, string $current_step, int $id=0)
|
||||
private $address_id;
|
||||
|
||||
private $warehouse_id;
|
||||
|
||||
public function __construct(int $company_module_id, ?string $reference, string $reference_contract, int $type, int $status, string $current_step, int $id=0, int $address_id, int $warehouse_id)
|
||||
{
|
||||
$this->company_module_id = $company_module_id;
|
||||
$this->reference = $reference;
|
||||
@@ -30,6 +34,8 @@ class OrderObject implements DataTransferObject
|
||||
$this->status = $status;
|
||||
$this->current_step = $current_step;
|
||||
$this->id = $id;
|
||||
$this->address_id = $address_id;
|
||||
$this->warehouse_id = $warehouse_id;
|
||||
}
|
||||
|
||||
public function getId(): int
|
||||
@@ -67,6 +73,16 @@ class OrderObject implements DataTransferObject
|
||||
return $this->current_step;
|
||||
}
|
||||
|
||||
public function getWarehouseId(): int
|
||||
{
|
||||
return $this->warehouse_id;
|
||||
}
|
||||
|
||||
public function getAddressId(): int
|
||||
{
|
||||
return $this->address_id;
|
||||
}
|
||||
|
||||
public function setCurrentStep(string $step)
|
||||
{
|
||||
$this->current_step = $step;
|
||||
|
||||
Reference in New Issue
Block a user