From e252e554c4639ef917b678ec418e7177d46d4fc8 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 5 Jul 2022 16:08:06 +0300 Subject: [PATCH] person entity methods --- application/Espo/Core/Entities/Person.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 */