name = $name; $this->title = OptionalText::from($title); $this->phone = OptionalText::from($phone); $this->email = $email; $this->note = OptionalText::from($note); } public function id(): ?int { return $this->id; } public function customerId(): int { return $this->customerId; } public function name(): ContactName { return $this->name; } public function title(): ?string { return $this->title; } public function phone(): ?string { return $this->phone; } public function email(): ?EmailAddress { return $this->email; } public function note(): ?string { return $this->note; } }