1: <?php
2:
3: namespace MaxMind\MinFraud\Model;
4:
5: use GeoIp2\Model\Insights as GeoIp2Insights;
6:
7: /**
8: * Class IpAddress
9: * @package MaxMind\MinFraud\Model
10: *
11: * @property float $risk This field contains the risk associated with the IP
12: * address. The value ranges from 0.01 to 99. A higher score indicates a
13: * higher risk.
14: */
15: class IpAddress extends GeoIp2Insights
16: {
17: /**
18: * @ignore
19: */
20: protected $risk;
21:
22: public function __construct($response, $locales = array('en'))
23: {
24: parent::__construct($response, $locales);
25: $this->country = new GeoIp2Country($this->get('country'), $locales);
26: $this->location = new GeoIp2Location($this->get('location'));
27: $this->risk = $this->get('risk');
28: }
29: }
30: