Add flag_active and title fields to customer #25
This commit is contained in:
parent
394d4c926a
commit
c23845ce14
1 changed files with 36 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue