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
@@ -6,14 +6,12 @@ use App\Classes\General\Interfaces\DataTransferObject;
class CompanyModuleObject implements DataTransferObject
{
/** @var int */
private $companyId;
/** @var int|null */
private $type;
/** @var string */
private $name;
/** @var int|null */
private $status;
/** @var string */
private $reference;
/** @var string */
private $unity_hash_id;
@@ -21,27 +19,61 @@ class CompanyModuleObject implements DataTransferObject
/** @var string */
private $unity_signature;
/** @var int */
private $type;
/** @var int */
private $status;
/**
* CompanyObject constructor.
* @param int $companyId
* @param int|null $type
* @param int|null $status
* CompanyModuleObject constructor.
* @param string $name
* @param string $reference
* @param string $unity_hash_id
* @param string $unity_signature
* @param int $type
* @param int $status
*/
public function __construct(int $companyId, int $type, int $status, ?string $unity_hash_id, ?string $unity_signature)
public function __construct(string $name, string $reference, string $unity_hash_id, string $unity_signature, int $type, int $status)
{
$this->companyId = $companyId;
$this->type = $type;
$this->status = $status;
$this->name = $name;
$this->reference = $reference;
$this->unity_hash_id = $unity_hash_id;
$this->unity_signature = $unity_signature;
$this->type = $type;
$this->status = $status;
}
/**
* @return int
* @return string
*/
public function getCompanyId(): int
public function getName(): string
{
return $this->companyId;
return $this->name;
}
/**
* @return string
*/
public function getReference(): string
{
return $this->reference;
}
/**
* @return string
*/
public function getUnityHashId(): string
{
return $this->unity_hash_id;
}
/**
* @return string
*/
public function getUnitySignature(): string
{
return $this->unity_signature;
}
/**
@@ -60,19 +92,5 @@ class CompanyModuleObject implements DataTransferObject
return $this->status;
}
/**
* @return string
*/
public function getUnityHashId(): string
{
return $this->unity_hash_id;
}
/**
* @return string
*/
public function getUnitySignature(): string
{
return $this->unity_signature;
}
}