emailAddress = $emailAddress; $this->type = $type; $this->id = $id; $this->userId = $userId; } public function getEmailAddress(): string { return $this->emailAddress; } public function getType(): ?string { return $this->type; } public function getId(): ?string { return $this->id; } public function getUserId(): ?string { return $this->userId; } }