id = $id; $this->articleId = $articleId; $this->author = $author; $this->content = $content; $this->created = $created; } /** * Gibt die ID des Kommentars zurück. * * @return int Kommentar-ID */ public function getId(): int { return $this->id; } /** * Gibt die ID des zugehörigen Beitrags zurück. * * @return int Beitrags-ID */ public function getArticleId(): int { return $this->articleId; } /** * Gibt den Autor des Kommentars zurück. * * @return string Autor */ public function getAuthor(): string { return $this->author; } /** * Gibt den Inhalt des Kommentars zurück. * * @return string Kommentarinhalt */ public function getContent(): string { return $this->content; } /** * Gibt das Erstellungsdatum des Kommentars zurück. * * @return string Erstellungsdatum */ public function getCreated(): string { return $this->created; } }