From 52f075ccbaf2aa6cff59f0f9f47a31208e2a3561 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Mon, 10 Feb 2020 02:48:21 +0000 Subject: [PATCH] Add new fields to customer. #324 --- src/Entity/Customer.php | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/src/Entity/Customer.php b/src/Entity/Customer.php index d9dd9b98..afad3ce9 100644 --- a/src/Entity/Customer.php +++ b/src/Entity/Customer.php @@ -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; + } }