mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
add email and phonenumber: wrote migration file, changed templates, changed validation rules
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user