Add title and subtitle fields to the typo article

parent d7933d53
......@@ -20,14 +20,21 @@ class TyposArticle
public $id;
public $text;
public $title;
public $subtitle;
/**
* TyposArticle constructor.
* @param $id integer Article id
* @param $text string Article text
* @param $title string Article title
* @param $subtitle string Article subtitle
*/
public function __construct($id, $text)
public function __construct($id, $text, $title, $subtitle)
{
$this->id = $id;
$this->text = $text;
$this->title = $title;
$this->subtitle = $subtitle;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment