Assign contract obligations at Unity

This commit is contained in:
Fairuz
2021-07-30 19:06:38 +08:00
parent 238897e3eb
commit e5814fcd01
13 changed files with 206 additions and 27 deletions
@@ -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;