General fixes to table design, added state and district seeder for china, made changes to create order process, and ui and vue js components changes for registration, dashboard and registration

This commit is contained in:
omair saleh
2021-08-14 09:28:36 +08:00
parent dda0cf0b02
commit 8c4bac81e6
46 changed files with 1302 additions and 704 deletions
@@ -4,43 +4,57 @@ namespace App\Classes\Modules\Orders\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
use App\Models\CompanyModule;
use App\Models\Order;
class OrderRoleObject implements DataTransferObject
{
private $order_id;
private $company_module_id;
/** @var Order */
private $order;
private $role_hash_id;
/** @var CompanyModule */
private $companyModule;
private $role_signature;
/** @var int */
private $role;
public function __construct(int $order_id, int $company_module_id, ?string $role_hash_id, ?string $role_signature)
/**
* OrderRoleObject constructor.
* @param Order $order
* @param CompanyModule $companyModule
* @param int $role
*/
public function __construct(Order $order, CompanyModule $companyModule, int $role)
{
$this->order_id = $order_id;
$this->company_module_id = $company_module_id;
$this->role_hash_id = $role_hash_id;
$this->role_signature = $role_signature;
$this->order = $order;
$this->companyModule = $companyModule;
$this->role = $role;
}
public function getOrderId(): int
/**
* @return Order
*/
public function getOrder(): Order
{
return $this->order_id;
return $this->order;
}
public function getCompanyModuleId(): int
/**
* @return CompanyModule
*/
public function getCompanyModule(): CompanyModule
{
return $this->company_module_id;
return $this->companyModule;
}
public function getRoleHashId(): ?string
/**
* @return int
*/
public function getRole(): int
{
return $this->role_hash_id;
return $this->role;
}
public function getRoleSignature(): ?string
{
return $this->role_signature;
}
}