update packinglists from vt portal

This commit is contained in:
omair saleh
2021-08-23 08:39:59 +08:00
parent d24fea2910
commit 276e12679d
88 changed files with 2252 additions and 692 deletions
@@ -7,31 +7,62 @@ use App\Classes\General\Interfaces\DataTransferObject;
class PackingListObject implements DataTransferObject
{
/** @var null|string */
/** @var string */
private $reference;
/** @var int */
private $claimantId;
/** @var int */
private $type;
/** @var int */
private $status;
/** @var string|null */
private $contractReference;
/**
* PackingListObject constructor.
* @param null|string $reference
* @param string $reference
* @param int $claimantId
* @param int $type
* @param int $status
* @param null|string $contractReference
*/
public function __construct(?string $reference, int $status)
public function __construct(string $reference, int $claimantId, int $type, int $status, ?string $contractReference = null)
{
$this->reference = $reference;
$this->claimantId = $claimantId;
$this->type = $type;
$this->status = $status;
$this->contractReference = $contractReference;
}
/**
* @return null|string
* @return string
*/
public function getReference(): ?string
public function getReference(): string
{
return $this->reference;
}
/**
* @return int
*/
public function getClaimantId(): int
{
return $this->claimantId;
}
/**
* @return int
*/
public function getType(): int
{
return $this->type;
}
/**
* @return int
*/
@@ -40,5 +71,13 @@ class PackingListObject implements DataTransferObject
return $this->status;
}
/**
* @return null|string
*/
public function getContractReference(): ?string
{
return $this->contractReference;
}
}