mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-28 00:44:23 +00:00
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:
@@ -4,93 +4,56 @@ namespace App\Classes\Modules\Orders\DataTransferObjects;
|
||||
|
||||
|
||||
use App\Classes\General\Interfaces\DataTransferObject;
|
||||
use App\Classes\ValueObjects\Constants\ApprovalStatus;
|
||||
|
||||
class OrderObject implements DataTransferObject
|
||||
{
|
||||
private $id;
|
||||
|
||||
private $company_module_id;
|
||||
|
||||
/** @var int */
|
||||
private $reference;
|
||||
|
||||
private $reference_contract;
|
||||
|
||||
/** @var int */
|
||||
private $type;
|
||||
|
||||
/** @var int|null */
|
||||
private $status;
|
||||
|
||||
private $current_step;
|
||||
|
||||
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)
|
||||
/**
|
||||
* OrderObject constructor.
|
||||
* @param int $reference
|
||||
* @param int $type
|
||||
* @param int|null $status
|
||||
*/
|
||||
public function __construct(int $reference, int $type, ?int $status = ApprovalStatus::PENDING_VERIFICATION)
|
||||
{
|
||||
$this->company_module_id = $company_module_id;
|
||||
$this->reference = $reference;
|
||||
$this->reference_contract = $reference_contract;
|
||||
$this->type = $type;
|
||||
$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
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getCompanyModuleId(): int
|
||||
{
|
||||
return $this->company_module_id;
|
||||
}
|
||||
|
||||
public function getReference(): string
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getReference(): int
|
||||
{
|
||||
return $this->reference;
|
||||
}
|
||||
|
||||
public function getReferenceContract(): string
|
||||
{
|
||||
return $this->reference_contract;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getType(): int
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getStatus(): int
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
public function getCurrentStep(): string
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
public function setStatus(int $status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user