mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-24 15:04:07 +00:00
Major incomplete Change
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\Orders\DataTransferObjects;
|
||||
|
||||
|
||||
class OrderObject
|
||||
{
|
||||
|
||||
/** @var string */
|
||||
private $orderId;
|
||||
|
||||
/** @var int|null */
|
||||
private $companyId;
|
||||
|
||||
/** @var int|null */
|
||||
private $warehouseId;
|
||||
|
||||
/**
|
||||
* OrderObject constructor.
|
||||
* @param string $orderId
|
||||
* @param int|null $companyId
|
||||
* @param int|null $warehouseId
|
||||
*/
|
||||
public function __construct(string $orderId, ?int $companyId = null, ?int $warehouseId = null)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
$this->companyId = $companyId;
|
||||
$this->warehouseId = $warehouseId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId(): string
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getCompanyId(): ?int
|
||||
{
|
||||
return $this->companyId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getWarehouseId(): ?int
|
||||
{
|
||||
return $this->warehouseId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int|null $warehouseId
|
||||
*/
|
||||
public function setWarehouseId(?int $warehouseId): void
|
||||
{
|
||||
$this->warehouseId = $warehouseId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user