diff --git a/src/Entity/Customer.php b/src/Entity/Customer.php index 8fb59dd1..bbd287c8 100644 --- a/src/Entity/Customer.php +++ b/src/Entity/Customer.php @@ -22,6 +22,13 @@ class Customer */ protected $id; + // title + /** + * @ORM\Column(type="string", length=10) + * @Assert\NotBlank() + */ + protected $title; + // first name /** * @ORM\Column(type="string", length=80) @@ -90,6 +97,12 @@ class Customer */ protected $flag_mobile_app; + // if active + /** + * @ORM\Column(type="boolean") + */ + protected $flag_active; + public function __construct() { $this->numbers = new ArrayCollection(); @@ -102,6 +115,7 @@ class Customer $this->flag_confirmed = false; $this->flag_mobile_app = false; + $this->flag_active = false; } public function getID() @@ -109,6 +123,17 @@ class Customer return $this->id; } + public function setTitle($title) + { + $this->title = $title; + return $this; + } + + public function getTitle() + { + return $this->title; + } + public function setFirstName($first_name) { $this->first_name = $first_name; @@ -256,6 +281,17 @@ class Customer return $this->flag_mobile_app; } + public function setActive($flag_active = true) + { + $this->flag_active = $flag_active; + return $this; + } + + public function isActive() + { + return $this->flag_active; + } + public function getJobOrders() { return $this->job_orders;