Address
in package
implements
JsonSerializable
AbstractYes
Abstract model for a postal address.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $distanceToIpLocation : int|null
- $isInIpCountry : bool|null
- $isPostalInCity : bool|null
- $latitude : float|null
- $longitude : float|null
Methods
- __construct() : mixed
- jsonSerialize() : array<string, mixed>
Properties
$distanceToIpLocation read-only
public
int|null
$distanceToIpLocation
the distance in kilometers from the address to the IP location
$isInIpCountry read-only
public
bool|null
$isInIpCountry
This property is true if the address is in the IP country. The property is false when the address is not in the IP country. If the address could not be parsed or was not provided or if the IP address could not be geolocated, the property will be null.
$isPostalInCity read-only
public
bool|null
$isPostalInCity
This property is true if the postal code provided with the address is in the city for the address. The property is false when the postal code is not in the city. If the address was not provided or could not be parsed, the property will be null.
$latitude read-only
public
float|null
$latitude
the latitude associated with the address
$longitude read-only
public
float|null
$longitude
the longitude associated with the address
Methods
__construct()
public
__construct(array<string, mixed>|null $response) : mixed
Parameters
- $response : array<string, mixed>|null
jsonSerialize()
public
jsonSerialize() : array<string, mixed>