emailAddress = $emailAddress; $this->entity = $entity; } public function getEmailAddress(): EmailAddress { return $this->emailAddress; } public function getEntity(): Entity { return $this->entity; } public function getValueMap(): stdClass { return (object) [ 'emailAddress' => $this->emailAddress->getAddress(), 'name' => $this->entity->get('name'), 'entityId' => $this->entity->getId(), 'entityType' => $this->entity->getEntityType(), ]; } }