From 84eba108956170a32db94558680a8a7b78b9f242 Mon Sep 17 00:00:00 2001 From: Rossetto Date: Wed, 8 Nov 2023 17:16:50 +0100 Subject: [PATCH 1/2] DAL directory created, article class added --- mvc_PSR4_twig/modeles/Article.php | 127 ++++++++++++++++++++++++++ mvc_PSR4_twig/modeles/Simplemodel.php | 15 --- 2 files changed, 127 insertions(+), 15 deletions(-) create mode 100755 mvc_PSR4_twig/modeles/Article.php delete mode 100755 mvc_PSR4_twig/modeles/Simplemodel.php diff --git a/mvc_PSR4_twig/modeles/Article.php b/mvc_PSR4_twig/modeles/Article.php new file mode 100755 index 0000000..14e9e2e --- /dev/null +++ b/mvc_PSR4_twig/modeles/Article.php @@ -0,0 +1,127 @@ +title = $title; + $this->date = $date; + $this->description = $description; + $this->guid = $guid; + $this->link = $link; + $this->mediaContent = $mediaContent; + } + + /** + * @return string + */ + public function getTitle(): string + { + return $this->title; + } + + /** + * @param string $title + */ + public function setTitle(string $title): void + { + $this->title = $title; + } + + /** + * @return string + */ + public function getDate(): string + { + return $this->date; + } + + /** + * @param string $date + */ + public function setDate(string $date): void + { + $this->date = $date; + } + + /** + * @return string + */ + public function getDescription(): string + { + return $this->description; + } + + /** + * @param string $description + */ + public function setDescription(string $description): void + { + $this->description = $description; + } + + /** + * @return string + */ + public function getGuid(): string + { + return $this->guid; + } + + /** + * @param string $guid + */ + public function setGuid(string $guid): void + { + $this->guid = $guid; + } + + /** + * @return string + */ + public function getLink(): string + { + return $this->link; + } + + /** + * @param string $link + */ + public function setLink(string $link): void + { + $this->link = $link; + } + + /** + * @return string + */ + public function getMediaContent(): string + { + return $this->mediaContent; + } + + /** + * @param string $mediaContent + */ + public function setMediaContent(string $mediaContent): void + { + $this->mediaContent = $mediaContent; + } +} \ No newline at end of file diff --git a/mvc_PSR4_twig/modeles/Simplemodel.php b/mvc_PSR4_twig/modeles/Simplemodel.php deleted file mode 100755 index 277c591..0000000 --- a/mvc_PSR4_twig/modeles/Simplemodel.php +++ /dev/null @@ -1,15 +0,0 @@ - Date: Wed, 8 Nov 2023 17:27:54 +0100 Subject: [PATCH 2/2] bis --- mvc_PSR4_twig/DAL/ArticleGateway.php | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 mvc_PSR4_twig/DAL/ArticleGateway.php diff --git a/mvc_PSR4_twig/DAL/ArticleGateway.php b/mvc_PSR4_twig/DAL/ArticleGateway.php new file mode 100755 index 0000000..0008a0a --- /dev/null +++ b/mvc_PSR4_twig/DAL/ArticleGateway.php @@ -0,0 +1,6 @@ +