\MaxMind\MinFraud\ModelAddress

Abstract model for a postal address.

Summary

Methods
Properties
Constants
__construct()
jsonSerialize()
$distanceToIpLocation
$isInIpCountry
$isPostalInCity
$latitude
$longitude
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$distanceToIpLocation

$distanceToIpLocation : int|null

The distance in kilometers from the address to the IP location.

Type

normal

$isInIpCountry

$isInIpCountry : bool|null

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.

Type

normal

$isPostalInCity

$isPostalInCity : bool|null

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.

Type

normal

$latitude

$latitude : float|null

The latitude associated with the address.

Type

normal

$longitude

$longitude : float|null

The longitude associated with the address.

Type

normal

Methods

__construct()

__construct(mixed  $response, mixed  $locales = ['en']) : mixed

Parameters

mixed $response

the array corresponding to the object in the minFraud Insights response

mixed $locales

list of locale codes to use in name property from most preferred to least preferred

Returns

mixed

jsonSerialize()

jsonSerialize() : array

Returns

array —

data that can be serialized by json_encode