summaryrefslogtreecommitdiff
path: root/src/model/entities
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-04-02 00:00:35 +0200
committerpolo <ordipolo@gmx.fr>2025-04-02 00:00:35 +0200
commite4a325c9d5c07f09bc18b7e366ffb82b82c43502 (patch)
treeb30c9c91106ebdbeef988c2c1ebd955b62051be2 /src/model/entities
parente91841c4e678f955e1a44bf0fa0839e84f0aacd0 (diff)
downloadcms-e4a325c9d5c07f09bc18b7e366ffb82b82c43502.zip
modification des titres, aperçus et dates des news
Diffstat (limited to 'src/model/entities')
-rw-r--r--src/model/entities/Article.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/model/entities/Article.php b/src/model/entities/Article.php
index 3b846da..601e573 100644
--- a/src/model/entities/Article.php
+++ b/src/model/entities/Article.php
@@ -49,6 +49,10 @@ class Article
49 { 49 {
50 return $this->date_time; 50 return $this->date_time;
51 } 51 }
52 public function setDateTime(\DateTime $date_time): void
53 {
54 $this->date_time = $date_time;
55 }
52 public function getTimestamp(): int 56 public function getTimestamp(): int
53 { 57 {
54 return $this->date_time->getTimestamp(); 58 return $this->date_time->getTimestamp();
@@ -57,10 +61,18 @@ class Article
57 { 61 {
58 return $this->title; 62 return $this->title;
59 } 63 }
64 public function setTitle(string $title): void
65 {
66 $this->title = $title;
67 }
60 public function getPreview(): string 68 public function getPreview(): string
61 { 69 {
62 return $this->preview; 70 return $this->preview;
63 } 71 }
72 public function setPreview(string $preview): void
73 {
74 $this->preview = $preview;
75 }
64 public function getContent(): string 76 public function getContent(): string
65 { 77 {
66 return $this->content; 78 return $this->content;