Overview

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • Test
      • Database
      • Model
      • WebService
    • WebService
  • MaxMind
    • MinFraud
      • Model
  • PHP

Classes

  • Address
  • BillingAddress
  • CreditCard
  • Device
  • Disposition
  • Email
  • Factors
  • GeoIp2Country
  • GeoIp2Location
  • Insights
  • IpAddress
  • Issuer
  • Score
  • ScoreIpAddress
  • ShippingAddress
  • Subscores
  • Warning
  • Overview
  • Namespace
  • Class

Class Address

Abstract model for a postal address.

MaxMind\MinFraud\Model\AbstractModel implements JsonSerializable
Extended by MaxMind\MinFraud\Model\Address

Direct known subclasses

MaxMind\MinFraud\Model\BillingAddress, MaxMind\MinFraud\Model\ShippingAddress
Abstract
Namespace: MaxMind\MinFraud\Model
Located at MinFraud/Model/Address.php
Methods summary
public
# __construct( array $response, array $locales = ['en'] )

Parameters

$response

the array corresponding to the object in the minFraud Insights response

$locales

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

Overrides

MaxMind\MinFraud\Model\AbstractModel::__construct()
Methods inherited from MaxMind\MinFraud\Model\AbstractModel
__get(), __isset(), jsonSerialize(), safeArrayLookup()
Magic properties summary
public read-only integer|null $distanceToIpLocation

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

public read-only boolean|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.

public read-only boolean|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.

public read-only float|null $latitude

The latitude associated with the address.

public read-only float|null $longitude

The longitude associated with the address.

minFraud PHP API v1.4.0 API documentation generated by ApiGen