Files
portal/app/Classes/Modules/Orders/DataTransferObjects/OrderObject.php
T
2021-08-05 10:52:26 +08:00

97 lines
1.9 KiB
PHP

<?php
namespace App\Classes\Modules\Orders\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
class OrderObject implements DataTransferObject
{
private $id;
private $company_module_id;
private $reference;
private $reference_contract;
private $type;
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)
{
$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 $this->reference;
}
public function getReferenceContract(): string
{
return $this->reference_contract;
}
public function getType(): int
{
return $this->type;
}
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;
}
}