1: <?php
2:
3: namespace MaxMind\MinFraud\Model;
4:
5: /**
6: * Model containing the IP address's risk for the Score response.
7: *
8: * @property-read float $risk This field contains the risk associated with the IP
9: * address. The value ranges from 0.01 to 99. A higher score indicates a
10: * higher risk.
11: */
12: class ScoreIpAddress extends AbstractModel
13: {
14: /**
15: * @ignore
16: */
17: protected $risk;
18:
19: public function __construct($response, $locales = ['en'])
20: {
21: parent::__construct($response, $locales);
22: $this->risk = $this->safeArrayLookup($response['risk']);
23: }
24: }
25: