mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 12:34:18 +00:00
137 lines
2.6 KiB
PHP
137 lines
2.6 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Addresses\DataTransferObjects;
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
use App\Classes\ValueObjects\Constants\ApprovalStatus;
|
|
|
|
class AddressObject implements DataTransferObject
|
|
{
|
|
|
|
/** @var string */
|
|
private $streetOne;
|
|
|
|
/** @var string|null */
|
|
private $streetTwo;
|
|
|
|
/** @var int */
|
|
private $countryId;
|
|
|
|
/** @var int */
|
|
private $stateId;
|
|
|
|
/** @var int */
|
|
private $districtId;
|
|
|
|
/** @var string */
|
|
private $postCode;
|
|
|
|
/** @var int */
|
|
private $type;
|
|
|
|
/** @var int */
|
|
private $status;
|
|
|
|
/** @var string|null */
|
|
private $reference;
|
|
|
|
/**
|
|
* AddressObject constructor.
|
|
* @param string $streetOne
|
|
* @param null|string $streetTwo
|
|
* @param int $countryId
|
|
* @param int $stateId
|
|
* @param int $districtId
|
|
* @param string $postCode
|
|
* @param int $type
|
|
* @param int $status
|
|
* @param null|string $reference
|
|
*/
|
|
public function __construct(string $streetOne, ?string $streetTwo, int $countryId, int $stateId, int $districtId, string $postCode, int $type, int $status, ?string $reference = null)
|
|
{
|
|
$this->streetOne = $streetOne;
|
|
$this->streetTwo = $streetTwo;
|
|
$this->countryId = $countryId;
|
|
$this->stateId = $stateId;
|
|
$this->districtId = $districtId;
|
|
$this->postCode = $postCode;
|
|
$this->type = $type;
|
|
$this->status = $status;
|
|
$this->reference = $reference;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getStreetOne(): string
|
|
{
|
|
return $this->streetOne;
|
|
}
|
|
|
|
/**
|
|
* @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 string
|
|
*/
|
|
public function getPostCode(): string
|
|
{
|
|
return $this->postCode;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getType(): int
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getStatus(): int
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
/**
|
|
* @return null|string
|
|
*/
|
|
public function getReference(): ?string
|
|
{
|
|
return $this->reference;
|
|
}
|
|
|
|
|
|
}
|