From 365a486c84b339a85f537c5e4f2b935bf3b27e50 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 17 Dec 2024 11:57:10 -0500 Subject: [PATCH] Add getName helper method --- src/Entity/Member.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Entity/Member.php b/src/Entity/Member.php index 7afe290..6ed7b91 100644 --- a/src/Entity/Member.php +++ b/src/Entity/Member.php @@ -144,6 +144,11 @@ class Member return $this; } + public function getName(): string + { + return "{$this->firstName} {$this->lastName}"; + } + public function getRelationship(): ?RelationshipType { return $this->relationship;