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