From a50a23c0e2f9ffbbd2f629b97ce4b10f5f744e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jakes=CC=8C?= Date: Thu, 5 Mar 2020 15:36:09 +0100 Subject: [PATCH] Add NewsletterTemplateEntity and repository [MAILPOET-2647] --- lib/Entities/NewsletterTemplateEntity.php | 137 ++++++++++++++++++ .../NewsletterTemplatesRepository.php | 19 +++ 2 files changed, 156 insertions(+) create mode 100644 lib/Entities/NewsletterTemplateEntity.php create mode 100644 lib/NewsletterTemplates/NewsletterTemplatesRepository.php diff --git a/lib/Entities/NewsletterTemplateEntity.php b/lib/Entities/NewsletterTemplateEntity.php new file mode 100644 index 0000000000..66759cf819 --- /dev/null +++ b/lib/Entities/NewsletterTemplateEntity.php @@ -0,0 +1,137 @@ +newsletter; + } + + /** + * @param NewsletterEntity|null $newsletter + */ + public function setNewsletter($newsletter) { + $this->newsletter = $newsletter; + } + + public function getName(): string { + return $this->name; + } + + public function setName(string $name) { + $this->name = $name; + } + + public function getCategories(): string { + return $this->categories; + } + + public function setCategories(string $categories) { + $this->categories = $categories; + } + + public function getDescription(): string { + return $this->description; + } + + public function setDescription(string $description) { + $this->description = $description; + } + + /** + * @return array|null + */ + public function getBody() { + return $this->body; + } + + /** + * @param array|null $body + */ + public function setBody($body) { + $this->body = $body; + } + + /** + * @return string|null + */ + public function getThumbnail() { + return $this->thumbnail; + } + + /** + * @param string|null $thumbnail + */ + public function setThumbnail($thumbnail) { + $this->thumbnail = $thumbnail; + } + + public function getReadonly(): bool { + return $this->readonly; + } + + public function setReadonly(bool $readonly) { + $this->readonly = $readonly; + } +} diff --git a/lib/NewsletterTemplates/NewsletterTemplatesRepository.php b/lib/NewsletterTemplates/NewsletterTemplatesRepository.php new file mode 100644 index 0000000000..b43d2857e7 --- /dev/null +++ b/lib/NewsletterTemplates/NewsletterTemplatesRepository.php @@ -0,0 +1,19 @@ +