diff --git a/lib/Entities/NewsletterEntity.php b/lib/Entities/NewsletterEntity.php new file mode 100644 index 0000000000..3c94e7475b --- /dev/null +++ b/lib/Entities/NewsletterEntity.php @@ -0,0 +1,330 @@ +newsletter_segments = new ArrayCollection(); + $this->options = new ArrayCollection(); + } + + /** + * @return string|null + */ + function getHash() { + return $this->hash; + } + + /** + * @param string|null $hash + */ + function setHash($hash) { + $this->hash = $hash; + } + + /** + * @return string + */ + function getSubject() { + return $this->subject; + } + + /** + * @param string $subject + */ + function setSubject($subject) { + $this->subject = $subject; + } + + /** + * @return string + */ + function getType() { + return $this->type; + } + + /** + * @param string $type + */ + function setType($type) { + $this->type = $type; + } + + /** + * @return string + */ + function getSenderAddress() { + return $this->sender_address; + } + + /** + * @param string $sender_address + */ + function setSenderAddress($sender_address) { + $this->sender_address = $sender_address; + } + + /** + * @return string + */ + function getSenderName() { + return $this->sender_name; + } + + /** + * @param string $sender_name + */ + function setSenderName($sender_name) { + $this->sender_name = $sender_name; + } + + /** + * @return string + */ + function getStatus() { + return $this->status; + } + + /** + * @param string $status + */ + function setStatus($status) { + $this->status = $status; + } + + /** + * @return string + */ + function getReplyToAddress() { + return $this->reply_to_address; + } + + /** + * @param string $reply_to_address + */ + function setReplyToAddress($reply_to_address) { + $this->reply_to_address = $reply_to_address; + } + + /** + * @return string + */ + function getReplyToName() { + return $this->reply_to_name; + } + + /** + * @param string $reply_to_name + */ + function setReplyToName($reply_to_name) { + $this->reply_to_name = $reply_to_name; + } + + /** + * @return string + */ + function getPreheader() { + return $this->preheader; + } + + /** + * @param string $preheader + */ + function setPreheader($preheader) { + $this->preheader = $preheader; + } + + /** + * @return array|null + */ + function getBody() { + return $this->body; + } + + /** + * @param array|null $body + */ + function setBody($body) { + $this->body = $body; + } + + /** + * @return DateTimeInterface|null + */ + function getSentAt() { + return $this->sent_at; + } + + /** + * @param DateTimeInterface|null $sent_at + */ + function setSentAt($sent_at) { + $this->sent_at = $sent_at; + } + + /** + * @return string|null + */ + function getUnsubscribeToken() { + return $this->unsubscribe_token; + } + + /** + * @param string|null $unsubscribe_token + */ + function setUnsubscribeToken($unsubscribe_token) { + $this->unsubscribe_token = $unsubscribe_token; + } + + /** + * @return NewsletterEntity|null + */ + function getParent() { + return $this->parent; + } + + /** + * @param NewsletterEntity|null $parent + */ + function setParent($parent) { + $this->parent = $parent; + } + + /** + * @return NewsletterSegmentEntity[]|Collection + */ + function getNewsletterSegments() { + return $this->newsletter_segments; + } + + /** + * @return NewsletterOptionEntity[]|Collection + */ + function getOptions() { + return $this->options; + } +} diff --git a/lib/Entities/NewsletterOptionEntity.php b/lib/Entities/NewsletterOptionEntity.php new file mode 100644 index 0000000000..e265952b48 --- /dev/null +++ b/lib/Entities/NewsletterOptionEntity.php @@ -0,0 +1,77 @@ +value; + } + + /** + * @param string|null $value + */ + function setValue($value) { + $this->value = $value; + } + + /** + * @return NewsletterEntity + */ + function getNewsletter() { + return $this->newsletter; + } + + /** + * @param NewsletterEntity $newsletter + */ + function setNewsletter($newsletter) { + $this->newsletter = $newsletter; + } + + /** + * @return NewsletterOptionFieldEntity + */ + function getOptionField() { + return $this->option_field; + } + + /** + * @param NewsletterOptionFieldEntity $option_field + */ + function setOptionField($option_field) { + $this->option_field = $option_field; + } +} diff --git a/lib/Entities/NewsletterOptionFieldEntity.php b/lib/Entities/NewsletterOptionFieldEntity.php new file mode 100644 index 0000000000..4188841165 --- /dev/null +++ b/lib/Entities/NewsletterOptionFieldEntity.php @@ -0,0 +1,57 @@ +name; + } + + /** + * @param string $name + */ + function setName($name) { + $this->name = $name; + } + + /** + * @return string + */ + function getNewsletterType() { + return $this->newsletter_type; + } + + /** + * @param string $newsletter_type + */ + function setNewsletterType($newsletter_type) { + $this->newsletter_type = $newsletter_type; + } +} diff --git a/lib/Entities/NewsletterSegmentEntity.php b/lib/Entities/NewsletterSegmentEntity.php new file mode 100644 index 0000000000..37d7020c15 --- /dev/null +++ b/lib/Entities/NewsletterSegmentEntity.php @@ -0,0 +1,51 @@ +newsletter; + } + + function setNewsletter(NewsletterEntity $newsletter) { + $this->newsletter = $newsletter; + } + + /** + * @return SegmentEntity + */ + function getSegment() { + return $this->segment; + } + + function setSegment(SegmentEntity $segment) { + $this->segment = $segment; + } +} diff --git a/lib/Entities/SegmentEntity.php b/lib/Entities/SegmentEntity.php new file mode 100644 index 0000000000..a65f0dd463 --- /dev/null +++ b/lib/Entities/SegmentEntity.php @@ -0,0 +1,79 @@ +name; + } + + /** + * @param string $name + */ + function setName($name) { + $this->name = $name; + } + + /** + * @return string + */ + function getType() { + return $this->type; + } + + /** + * @param string $type + */ + function setType($type) { + $this->type = $type; + } + + /** + * @return string + */ + function getDescription() { + return $this->description; + } + + /** + * @param string $description + */ + function setDescription($description) { + $this->description = $description; + } +} diff --git a/lib/Models/Newsletter.php b/lib/Models/Newsletter.php index e19aea36fa..9910b22e6d 100644 --- a/lib/Models/Newsletter.php +++ b/lib/Models/Newsletter.php @@ -1,6 +1,7 @@