person entity methods

This commit is contained in:
Yuri Kuznetsov
2022-07-05 16:08:06 +03:00
parent 85b3d698b2
commit e252e554c4
+16
View File
@@ -97,6 +97,22 @@ class Person extends Entity
$this->setInContainer('name', $name);
}
/**
* Get a primary email address.
*/
public function getEmailAddress(): ?string
{
return $this->get('emailAddress');
}
/**
* Get a primary phone number.
*/
public function getPhoneNumber(): ?string
{
return $this->get('phoneNumber');
}
public function getEmailAddressGroup(): EmailAddressGroup
{
/** @var EmailAddressGroup */