← All changes
|
backend/src/ValueObjects/Notification/NotificationContact.php
+33
-2
1.0
→
1.5.1
View file →
| @@ -13,14 +13,23 @@ | ||
| 13 | 13 | { |
| 14 | 14 | private string $sender; |
| 15 | 15 | private string $receiver; |
| 16 | 16 | private string $replyTo; |
| 17 | + private string $cc; | |
| 18 | + private string $bcc; | |
| 17 | 19 | |
| 18 | - public function __construct(string $sender, string $receiver, string $replyTo = '') | |
| 19 | - { | |
| 20 | + public function __construct( | |
| 21 | + string $sender, | |
| 22 | + string $receiver, | |
| 23 | + string $replyTo = '', | |
| 24 | + string $cc = '', | |
| 25 | + string $bcc = '' | |
| 26 | + ) { | |
| 20 | 27 | $this->sender = $sender; |
| 21 | 28 | $this->receiver = $receiver; |
| 22 | 29 | $this->replyTo = $replyTo; |
| 30 | + $this->cc = $cc; | |
| 31 | + $this->bcc = $bcc; | |
| 23 | 32 | } |
| 24 | 33 | |
| 25 | 34 | public function getSender(): string |
| 26 | 35 | { |
| @@ -51,8 +60,28 @@ | ||
| 51 | 60 | { |
| 52 | 61 | $this->replyTo = $replyTo; |
| 53 | 62 | } |
| 54 | 63 | |
| 64 | + public function getCc(): string | |
| 65 | + { | |
| 66 | + return $this->cc; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public function setCc(string $cc): void | |
| 70 | + { | |
| 71 | + $this->cc = $cc; | |
| 72 | + } | |
| 73 | + | |
| 74 | + public function getBcc(): string | |
| 75 | + { | |
| 76 | + return $this->bcc; | |
| 77 | + } | |
| 78 | + | |
| 79 | + public function setBcc(string $bcc): void | |
| 80 | + { | |
| 81 | + $this->bcc = $bcc; | |
| 82 | + } | |
| 83 | + | |
| 55 | 84 | /** |
| 56 | 85 | * Convert contact information to array |
| 57 | 86 | * |
| 58 | 87 | * @return array<string, string> |
| @@ -62,7 +91,9 @@ | ||
| 62 | 91 | return [ |
| 63 | 92 | 'sender' => $this->sender, |
| 64 | 93 | 'receiver' => $this->receiver, |
| 65 | 94 | 'replyTo' => $this->replyTo, |
| 95 | + 'cc' => $this->cc, | |
| 96 | + 'bcc' => $this->bcc, | |
| 66 | 97 | ]; |
| 67 | 98 | } |
| 68 | 99 | } |