Kommentare bearbeiten

This commit is contained in:
2026-07-18 18:49:48 +02:00
parent 7189133861
commit 031f2afd25
5 changed files with 232 additions and 4 deletions
+15
View File
@@ -72,4 +72,19 @@ interface CommentManagerDAO
* @return void
*/
public function deleteCommentsByAuthor(string $author): void;
/**
* Bearbeitet einen Kommentar des angemeldeten Nutzers.
*
* Nur der Autor des Kommentars darf den Inhalt ändern.
*
* @param int $commentId ID des Kommentars
* @param string $author E-Mail-Adresse des Autors
* @param string $content Neuer Kommentarinhalt
* @return bool true, wenn der Kommentar bearbeitet wurde
*/
public function updateComment(
int $commentId,
string $author,
string $content
): bool;
}