sender = $sender; $this->receiver = $receiver; $this->replyTo = $replyTo; } public function getSender(): string { return $this->sender; } public function getReceiver(): string { return $this->receiver; } public function getReplyTo(): string { return $this->replyTo; } public function setSender(string $sender): void { $this->sender = $sender; } public function setReceiver(string $receiver): void { $this->receiver = $receiver; } public function setReplyTo(string $replyTo): void { $this->replyTo = $replyTo; } /** * Convert contact information to array * * @return array */ public function toArray(): array { return [ 'sender' => $this->sender, 'receiver' => $this->receiver, 'replyTo' => $this->replyTo, ]; } }