Add title and subtitle fields to the typo article

parent d7933d53
...@@ -20,14 +20,21 @@ class TyposArticle ...@@ -20,14 +20,21 @@ class TyposArticle
public $id; public $id;
public $text; public $text;
public $title;
public $subtitle;
/** /**
* TyposArticle constructor. * TyposArticle constructor.
* @param $id integer Article id * @param $id integer Article id
* @param $text string Article text * @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->id = $id;
$this->text = $text; $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