WIP - Order steps & remaining APIs

This commit is contained in:
Fairuz
2021-07-23 16:14:54 +08:00
parent 1fe25476ce
commit d65b630560
19 changed files with 241 additions and 170 deletions
@@ -7,90 +7,24 @@ use App\Classes\General\Interfaces\DataTransferObject;
class PackingListObject implements DataTransferObject
{
/** @var string */
private $streetOne;
private $reference;
/** @var string|null */
private $streetTwo;
private $status;
/** @var int */
private $countryId;
/** @var int */
private $stateId;
/** @var int */
private $districtId;
/** @var int */
private $postCode;
/**
* PackingListObject constructor.
* @param string $streetOne
* @param null|string $streetTwo
* @param int $countryId
* @param int $stateId
* @param int $districtId
* @param int $postCode
*/
public function __construct(string $streetOne, ?string $streetTwo, int $countryId, int $stateId, int $districtId, int $postCode)
public function __construct(?string $reference, int $status)
{
$this->streetOne = $streetOne;
$this->streetTwo = $streetTwo;
$this->countryId = $countryId;
$this->stateId = $stateId;
$this->districtId = $districtId;
$this->postCode = $postCode;
$this->reference = $reference;
$this->status = $status;
}
/**
* @return string
*/
public function getStreetOne(): string
public function getReference(): ?string
{
return $this->streetOne;
return $this->reference;
}
/**
* @return null|string
*/
public function getStreetTwo(): ?string
public function getStatus(): int
{
return $this->streetTwo;
return $this->status;
}
/**
* @return int
*/
public function getCountryId(): int
{
return $this->countryId;
}
/**
* @return int
*/
public function getStateId(): int
{
return $this->stateId;
}
/**
* @return int
*/
public function getDistrictId(): int
{
return $this->districtId;
}
/**
* @return int
*/
public function getPostCode(): int
{
return $this->postCode;
}
}