1: <?php
2:
3: namespace MaxMind\MinFraud\Model;
4:
5: /**
6: * Model representing the Factors response.
7: *
8: * @property-read \MaxMind\MinFraud\Model\Subscores subscores An object
9: * containing subscores for many of the individual components that are
10: * used to calculate the overall risk score.
11: */
12: class Factors extends Insights
13: {
14: /**
15: * @internal
16: */
17: protected $subscores;
18:
19: public function __construct($response, $locales = ['en'])
20: {
21: parent::__construct($response, $locales);
22:
23: $this->subscores
24: = new Subscores($this->safeArrayLookup($response['subscores']));
25: }
26: }
27: