first test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user