Add new fields to customer. #324
This commit is contained in:
parent
506505bff5
commit
52f075ccba
1 changed files with 50 additions and 0 deletions
|
|
@ -165,6 +165,21 @@ class Customer
|
|||
*/
|
||||
protected $privpol_promo;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="boolean")
|
||||
*/
|
||||
protected $flag_promo_email;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="boolean")
|
||||
*/
|
||||
protected $flag_promo_sms;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="boolean")
|
||||
*/
|
||||
protected $flag_dpa_consent;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->numbers = new ArrayCollection();
|
||||
|
|
@ -191,6 +206,10 @@ class Customer
|
|||
$this->priv_promo = 0;
|
||||
|
||||
$this->flag_csat = false;
|
||||
|
||||
$this->flag_promo_email = false;
|
||||
$this->flag_promo_sms = false;
|
||||
$this->flag_dpa_consent = false;
|
||||
}
|
||||
|
||||
public function getID()
|
||||
|
|
@ -485,5 +504,36 @@ class Customer
|
|||
return $this->privpol_promo;
|
||||
}
|
||||
|
||||
public function setPromoEmail($flag_promo_email = true)
|
||||
{
|
||||
$this->flag_promo_email = $flag_promo_email;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isPromoEmail()
|
||||
{
|
||||
return $this->flag_promo_email;
|
||||
}
|
||||
|
||||
public function setPromoSms($flag_promo_sms = true)
|
||||
{
|
||||
$this->flag_promo_sms = $flag_promo_sms;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isPromoSms()
|
||||
{
|
||||
return $this->flag_promo_sms;
|
||||
}
|
||||
|
||||
public function setDpaConsent($flag_dpa_consent = true)
|
||||
{
|
||||
$this->flag_dpa_consent = $flag_dpa_consent;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isDpaConsent()
|
||||
{
|
||||
return $this->flag_dpa_consent;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue