1 <?php
2
3 namespace MaxMind\MinFraud\Model;
4
5 /**
6 * Model containing information about the email address.
7 *
8 * @property-read boolean|null $isFree This property is true if MaxMind believes
9 * that this email is hosted by a free email provider such as Gmail or Yahoo!
10 * Mail.
11 *
12 * @property-read boolean|null $isHighRisk This field is true if MaxMind believes
13 * that this email is likely to be used for fraud. Note that this is also
14 * factored into the overall risk_score in the response as well.
15 *
16 */
17 class Email extends AbstractModel
18 {
19 /**
20 * @internal
21 */
22 protected $isFree;
23
24 /**
25 * @internal
26 */
27 protected $isHighRisk;
28
29 public function __construct($response, $locales = ['en'])
30 {
31 parent::__construct($response, $locales);
32 $this->isFree = $this->safeArrayLookup($response['is_free']);
33 $this->isHighRisk = $this->safeArrayLookup($response['is_high_risk']);
34 }
35 }
36