Activate contract

This commit is contained in:
Fairuz
2021-08-03 02:01:20 +08:00
parent ec1e338870
commit 3f70ead69a
7 changed files with 49 additions and 7 deletions
@@ -25,7 +25,9 @@ class OrderStepsObject implements DataTransferObject
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)
private $hash_id;
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, ?string $hash_id)
{
$this->order_id = $order_id;
$this->appointee_id = $appointee_id;
@@ -38,6 +40,7 @@ class OrderStepsObject implements DataTransferObject
$this->completed_date = $completed_date;
$this->id = $id;
$this->hash_id = $hash_id;
}
public function getOrderId(): int
@@ -49,10 +52,12 @@ class OrderStepsObject implements DataTransferObject
{
return $this->appointee_id;
}
public function getReference(): string
{
return $this->reference;
}
public function getPrimary(): bool
{
return $this->primary;
@@ -83,4 +88,8 @@ class OrderStepsObject implements DataTransferObject
return $this->id;
}
}
public function getHashId(): ?string
{
return $this->hash_id;
}
}