diff --git a/application/Espo/Core/Entities/Person.php b/application/Espo/Core/Entities/Person.php index 6a426f873d..1b30eb867c 100644 --- a/application/Espo/Core/Entities/Person.php +++ b/application/Espo/Core/Entities/Person.php @@ -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 */