WIP - Order steps & remaining APIs

This commit is contained in:
Fairuz
2021-07-23 12:41:06 +08:00
parent 67e104d7e7
commit d7131dd5f8
22 changed files with 239 additions and 276 deletions
@@ -7,90 +7,32 @@ use App\Classes\General\Interfaces\DataTransferObject;
class RemarkObject implements DataTransferObject
{
/** @var string */
private $streetOne;
/** @var int */
private $commenterID;
/** @var string|null */
private $streetTwo;
/** @var string*/
private $comment;;
/** @var int */
private $countryId;
/** @var int */
private $stateId;
/** @var int */
private $districtId;
/** @var int */
private $postCode;
public function __construct(int $commenterID, string $comment)
{
$this->commenterID = $commenterID;
$this->comment = $comment;
}
/**
* RemarkObject constructor.
* @param string $streetOne
* @param null|string $streetTwo
* @param int $countryId
* @param int $stateId
* @param int $districtId
* @param int $postCode
* @return int
*/
public function __construct(string $streetOne, ?string $streetTwo, int $countryId, int $stateId, int $districtId, int $postCode)
public function getCommenterId(): string
{
$this->streetOne = $streetOne;
$this->streetTwo = $streetTwo;
$this->countryId = $countryId;
$this->stateId = $stateId;
$this->districtId = $districtId;
$this->postCode = $postCode;
return $this->commenterID;
}
/**
* @return string
*/
public function getStreetOne(): string
public function getComment(): ?string
{
return $this->streetOne;
return $this->comment;
}
/**
* @return null|string
*/
public function getStreetTwo(): ?string
{
return $this->streetTwo;
}
/**
* @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;
}
}