public function __construct($id, $title, $user_id, $items) { parent::__construct($id); $this->title = $title; $this->user_id = $user_id; $this->items = $items; }
public function __construct($id, $value, $is_completed = false) { parent::__construct($id); $this->value = $value; $this->is_completed = $is_completed; }