\MaxMind\MinFraud\ModelIpAddress

Model containing GeoIP2 data and the risk for the IP address.

Summary

Methods
Properties
Constants
__construct()
$country
$location
$risk
$riskReasons
$city
$location
$postal
$subdivisions
$mostSpecificSubdivision
$continent
$country
$maxmind
$registeredCountry
$representedCountry
$traits
$raw
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$country

$country : \MaxMind\MinFraud\Model\GeoIp2Country

Country data for the requested IP address. This object represents the country where MaxMind believes the end user is located.

Type

GeoIp2Country

$location

$location : \MaxMind\MinFraud\Model\GeoIp2Location

Location data for the requested IP address.

Type

GeoIp2Location

$risk

$risk : float|null

This field contains the risk associated with the IP address. The value ranges from 0.01 to 99. A higher score indicates a higher risk.

Type

float|null

$riskReasons

$riskReasons : \MaxMind\MinFraud\Model\IpRiskReason[]

This array contains \MaxMind\MinFraud\Model\IpRiskReason objects identifying the reasons why the IP address received the associated risk. This will be an empty array if there are no reasons.

Type

IpRiskReason[]

$city

$city : \GeoIp2\Record\City

City data for the requested IP address.

Type

City

$location

$location : \GeoIp2\Record\Location

Location data for the requested IP address.

Type

Location

$postal

$postal : \GeoIp2\Record\Postal

Postal data for the requested IP address.

Type

Postal

$subdivisions

$subdivisions : array

An array \GeoIp2\Record\Subdivision objects representing the country subdivisions for the requested IP address. The number and type of subdivisions varies by country, but a subdivision is typically a state, province, county, etc. Subdivisions are ordered from most general (largest) to most specific (smallest). If the response did not contain any subdivisions, this method returns an empty array.

Type

array

$mostSpecificSubdivision

$mostSpecificSubdivision : \GeoIp2\Record\Subdivision

An object representing the most specific subdivision returned. If the response did not contain any subdivisions, this method returns an empty \GeoIp2\Record\Subdivision object.

Type

Subdivision

$continent

$continent : \GeoIp2\Record\Continent

Continent data for the requested IP address.

Type

Continent

$country

$country : \GeoIp2\Record\Country

Country data for the requested IP address. This object represents the country where MaxMind believes the end user is located.

Type

Country

$maxmind

$maxmind : \GeoIp2\Record\MaxMind

Data related to your MaxMind account.

Type

MaxMind

$registeredCountry

$registeredCountry : \GeoIp2\Record\Country

Registered country data for the requested IP address. This record represents the country where the ISP has registered a given IP block and may differ from the user's country.

Type

Country

$representedCountry

$representedCountry : \GeoIp2\Record\RepresentedCountry

Represented country data for the requested IP address. The represented country is used for things like military bases. It is only present when the represented country differs from the country.

Type

RepresentedCountry

$traits

$traits : \GeoIp2\Record\Traits

Data for the traits of the requested IP address.

Type

Traits

$raw

$raw : array

The raw data from the web service.

Type

array

Methods

__construct()

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

Parameters

?array $response
array $locales

Returns

mixed —