add email and phonenumber: wrote migration file, changed templates, changed validation rules

This commit is contained in:
nobohan
2018-05-18 17:41:33 +02:00
parent 3eb96c4479
commit e9698f2cbc
9 changed files with 118 additions and 16 deletions

View File

@@ -66,6 +66,9 @@ class Person implements HasCenterInterface {
//TO-ADD : address
/** @var string Contact information for contacting the person */
private $contactInfo = '';
/** @var string The person's email */
private $email = '';
@@ -456,6 +459,32 @@ class Person implements HasCenterInterface {
return $this->maritalStatus;
}
/**
* Set contactInfo
*
* @param string $contactInfo
* @return Person
*/
public function setcontactInfo($contactInfo)
{
if ($contactInfo === null) {
$contactInfo = '';
}
$this->contactInfo = $contactInfo;
return $this;
}
/**
* Get contactInfo
*
* @return string
*/
public function getcontactInfo()
{
return $this->contactInfo;
}
/**
* Set email