final |
|---|
readonly |
The canonical address shape (SDK Address v0.9 D15) — the lingua franca across
the three layers: an AddressProviderInterface adapter maps its vendor output
into this DTO, a stored sdk_partner_addresses row produces one via
->toNormalizedAddress(), and an AddressFormatterInterface consumes one. So a
fresh provider suggestion and a persisted row render through the identical path.
"Normalized" is the shape, not the provenance — a manually-typed address is still carried in these normalized projection fields. This is the SDK's own concrete DTO (the normalization target), never a generic shared address interface (the atom forbids that) and never provider-shaped.
| Methods | ||
|---|---|---|
public
|
__construct(
?string $addressLine1,
?string $addressLine2,
?string $city,
?string $stateProvinceRegion,
?string $postalCode,
string $countryCode,
bool $hasNoPostalAddress = false,
bool $isCommercial = false,
?string $formattedAddress = null,
?int $providedBy = null,
?string $providerId = null,
?float $latitude = null,
?float $longitude = null,
)
|
# |
public
|
hasStructuredAddress(): bool
|
# |
| Properties | |||
|---|---|---|---|
public
|
?string
|
$addressLine1
|
# |
public
|
?string
|
$addressLine2
|
# |
public
|
?string
|
$city
|
# |
public
|
?string
|
$stateProvinceRegion
|
# |
public
|
?string
|
$postalCode
|
# |
public
|
string
|
$countryCode
|
# |
public
|
bool
|
$hasNoPostalAddress
|
# |
public
|
bool
|
$isCommercial
|
# |
public
|
?string
|
$formattedAddress
|
# |
public
|
?int
|
$providedBy
|
# |
public
|
?string
|
$providerId
|
# |
public
|
?float
|
$latitude
|
# |
public
|
?float
|
$longitude
|
# |