← All changes
|
backend/src/ValueObjects/Notification/Notification.php
+22
-0
1.1.1
→
1.5
View file →
| @@ -190,8 +190,28 @@ | ||
| 190 | 190 | return $this->contact->getReceiver(); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | /** |
| 194 | + * Get the notification CC addresses. | |
| 195 | + * | |
| 196 | + * @return string | |
| 197 | + */ | |
| 198 | + public function getCc(): string | |
| 199 | + { | |
| 200 | + return $this->contact->getCc(); | |
| 201 | + } | |
| 202 | + | |
| 203 | + /** | |
| 204 | + * Get the notification BCC addresses. | |
| 205 | + * | |
| 206 | + * @return string | |
| 207 | + */ | |
| 208 | + public function getBcc(): string | |
| 209 | + { | |
| 210 | + return $this->contact->getBcc(); | |
| 211 | + } | |
| 212 | + | |
| 213 | + /** | |
| 194 | 214 | * Get the notification status. |
| 195 | 215 | * |
| 196 | 216 | * @return bool |
| 197 | 217 | */ |
| @@ -279,8 +299,10 @@ | ||
| 279 | 299 | 'name' => $this->getName(), |
| 280 | 300 | 'sender' => $this->getSender(), |
| 281 | 301 | 'replyTo' => $this->getReplyTo(), |
| 282 | 302 | 'receiver' => $this->getReceiver(), |
| 303 | + 'cc' => $this->getCc(), | |
| 304 | + 'bcc' => $this->getBcc(), | |
| 283 | 305 | 'enabled' => $this->isEnabled(), |
| 284 | 306 | 'subject' => $this->getSubject(), |
| 285 | 307 | 'message' => $this->getMessage(), |
| 286 | 308 | 'showEmptyFields' => $this->isShowEmptyFields(), |