large commit

This commit is contained in:
Omair Saleh
2019-10-05 13:09:26 +08:00
parent a20feebe0c
commit 0e5f2939e3
94 changed files with 1131 additions and 540 deletions
@@ -7,43 +7,56 @@ class OrderObject
{
/** @var string */
private $orderId;
private $marking;
/** @var int|null */
/** @var int */
private $companyId;
/** @var int */
private $forwarderId;
/** @var int|null */
private $warehouseId;
/**
* OrderObject constructor.
* @param string $orderId
* @param int|null $companyId
* @param string $marking
* @param int $companyId
* @param int $forwarderId
* @param int|null $warehouseId
*/
public function __construct(string $orderId, ?int $companyId = null, ?int $warehouseId = null)
public function __construct(string $marking, int $companyId, int $forwarderId, ?int $warehouseId = null)
{
$this->orderId = $orderId;
$this->marking = $marking;
$this->companyId = $companyId;
$this->forwarderId = $forwarderId;
$this->warehouseId = $warehouseId;
}
/**
* @return string
*/
public function getOrderId(): string
public function getMarking(): string
{
return $this->orderId;
return $this->marking;
}
/**
* @return int|null
* @return int
*/
public function getCompanyId(): ?int
public function getCompanyId(): int
{
return $this->companyId;
}
/**
* @return int
*/
public function getForwarderId(): int
{
return $this->forwarderId;
}
/**
* @return int|null
*/