From 2ec1b70c91ba8937546ad0ecef2358c72cc404f4 Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Fri, 17 Jul 2026 17:59:17 +0200 Subject: [PATCH] Update Article.php --- php/model/Article.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/php/model/Article.php b/php/model/Article.php index a0e1b65..a553c43 100644 --- a/php/model/Article.php +++ b/php/model/Article.php @@ -97,6 +97,16 @@ class Article return $this->author; } + /** + * Setzt einen neuen Autor eines Beitrages. + * @param string $author + * @return void + */ + public function setAuthor(string $author) + { + $this->author = $author; + } + /** * Gibt das Veröffentlichungsdatum des Beitrags zurück. * @return string