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