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