Added contract entity, address to Orders

This commit is contained in:
Fairuz
2021-08-03 01:18:34 +08:00
parent af38004595
commit 7e9b3259c3
10 changed files with 379 additions and 0 deletions
@@ -0,0 +1,46 @@
<?php
namespace App\Classes\Modules\Orders\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
class OrderRoleObject implements DataTransferObject
{
private $order_id;
private $company_module_id;
private $role_hash_id;
private $role_signature;
public function __construct(int $order_id, int $company_module_id, ?string $role_hash_id, ?string $role_signature)
{
$this->order_id = $order_id;
$this->company_module_id = $company_module_id;
$this->role_hash_id = $role_hash_id;
$this->role_signature = $role_signature;
}
public function getOrderId(): int
{
return $this->order_id;
}
public function getCompanyModuleId(): int
{
return $this->company_module_id;
}
public function getRoleHashId(): ?string
{
return $this->role_hash_id;
}
public function getRoleSignature(): ?string
{
return $this->role_signature;
}
}