1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30:
<?php
namespace MaxMind\MinFraud\Model;
use GeoIp2\Model\Insights as GeoIp2Insights;
class IpAddress extends GeoIp2Insights
{
protected $risk;
public function __construct($response, $locales = ['en'])
{
parent::__construct($response, $locales);
$this->country = new GeoIp2Country($this->get('country'), $locales);
$this->location = new GeoIp2Location($this->get('location'));
$this->risk = $this->get('risk');
}
}