Files
izyim/app/Classes/Modules/Orders/DataTransferObjects/OrderObject.php
T
omair saleh 8a28eb1790 Revert "Merge branch 'dashboardReport' into 'master'"
This reverts merge request !5
2019-03-19 09:57:38 +00:00

66 lines
1.1 KiB
PHP

<?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;
}
}