first test

This commit is contained in:
NOrtmann1
2026-05-27 16:52:06 +02:00
parent 7d9bef932f
commit 0686e98384
7 changed files with 145 additions and 110 deletions
+6 -6
View File
@@ -11,7 +11,7 @@ class Article
private $title;
private $content;
private $author;
private $date;
private $creationDate;
private $category;
/**
@@ -22,16 +22,16 @@ class Article
* @param $content string Inhalt des Beitrags
* @param $author string der Autor des des Beitrages NID
* @param $category string Kategorie des Beitrages
* @param $date
* @param $creationDate
* @param $tags string[] optionale Schlagworte für eine bessere Suche
*/
public function __construct($id, $title, $content, $author, $date, $category, array $tags)
public function __construct($id, $title, $content, $author, $creationDate, $category, array $tags)
{
$this->id = $id;
$this->title = $title;
$this->content = $content;
$this->author = $author;
$this->date = $date;
$this->creationDate = $creationDate;
$this->category = $category;
$this->tags = $tags;
}
@@ -98,9 +98,9 @@ class Article
* Gibt das Veröffentlichungsdatum des Artikels zurück.
* @return mixed
*/
public function getDate()
public function getcreationDate()
{
return $this->date;
return $this->creationDate;
}
}