mirror of
https://gitlab.com/omair-personal/izyim.git
synced 2026-08-19 12:24:11 +00:00
66 lines
1.1 KiB
PHP
Executable File
66 lines
1.1 KiB
PHP
Executable File
<?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;
|
|
}
|
|
|
|
|
|
|
|
|
|
} |