PluginProbe
The Innovative Form Builder – IvyForms / 1.5
The Innovative Form Builder – IvyForms v1.5
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Entity / Notification / NotificationContact.php

NotificationContact.php in The Innovative Form Builder – IvyForms 1.5, at backend/src/Entity/Notification/NotificationContact.php

144 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * @copyright © Melograno Venture Studio. All rights reserved.
5 * @licence See LICENCE.md for license details.
6 */
7
8 namespace IvyForms\Entity\Notification;
9
10 use IvyForms\ValueObjects\Notification\NotificationContact as NotificationContactValueObject;
11
12 /**
13 * Class NotificationContact
14 *
15 * Entity wrapper for NotificationContact ValueObject.
16 *
17 * @package IvyForms\Entity\Notification
18 */
19 class NotificationContact
20 {
21 /**
22 * @var NotificationContactValueObject
23 */
24 private NotificationContactValueObject $notificationContact;
25
26 /**
27 * @param NotificationContactValueObject $notificationContact
28 */
29 public function __construct(NotificationContactValueObject $notificationContact)
30 {
31 $this->notificationContact = $notificationContact;
32 }
33
34 /**
35 * Get the notification sender.
36 *
37 * @return string
38 */
39 public function getSender(): string
40 {
41 return $this->notificationContact->getSender();
42 }
43
44 /**
45 * Set the notification sender.
46 *
47 * @param string $sender
48 */
49 public function setSender(string $sender): void
50 {
51 $this->notificationContact->setSender($sender);
52 }
53
54 /**
55 * Get the notification receiver.
56 *
57 * @return string
58 */
59 public function getReceiver(): string
60 {
61 return $this->notificationContact->getReceiver();
62 }
63
64 /**
65 * Set the notification receiver.
66 *
67 * @param string $receiver
68 */
69 public function setReceiver(string $receiver): void
70 {
71 $this->notificationContact->setReceiver($receiver);
72 }
73
74 /**
75 * Get the notification reply-to address.
76 *
77 * @return string
78 */
79 public function getReplyTo(): string
80 {
81 return $this->notificationContact->getReplyTo();
82 }
83
84 /**
85 * Set the notification reply-to address.
86 *
87 * @param string $replyTo
88 */
89 public function setReplyTo(string $replyTo): void
90 {
91 $this->notificationContact->setReplyTo($replyTo);
92 }
93
94 /**
95 * Get the notification CC addresses.
96 *
97 * @return string
98 */
99 public function getCc(): string
100 {
101 return $this->notificationContact->getCc();
102 }
103
104 /**
105 * Set the notification CC addresses.
106 *
107 * @param string $cc
108 */
109 public function setCc(string $cc): void
110 {
111 $this->notificationContact->setCc($cc);
112 }
113
114 /**
115 * Get the notification BCC addresses.
116 *
117 * @return string
118 */
119 public function getBcc(): string
120 {
121 return $this->notificationContact->getBcc();
122 }
123
124 /**
125 * Set the notification BCC addresses.
126 *
127 * @param string $bcc
128 */
129 public function setBcc(string $bcc): void
130 {
131 $this->notificationContact->setBcc($bcc);
132 }
133
134 /**
135 * Convert contact information to array.
136 *
137 * @return array<string, string>
138 */
139 public function toArray(): array
140 {
141 return $this->notificationContact->toArray();
142 }
143 }
144