From e2009994bd6ca51c26494f41ac249823e4a2af1b Mon Sep 17 00:00:00 2001 From: "nicolas.franco" Date: Thu, 1 Dec 2022 21:04:11 +0100 Subject: [PATCH] test pour TaskGateway --- business/Task.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/business/Task.php b/business/Task.php index efca4fa..bdc6ea1 100644 --- a/business/Task.php +++ b/business/Task.php @@ -3,14 +3,19 @@ private int $id; private string $titre; private string $description; - private DateTime $dateDeb; - private DateTime $dateFin; + private $dateDeb; + private $dateFin; # $today = date("m.d.y") private string $priorite; - private string $idlist; // # id associating task to list - - function __construct($id, $titre, $description, $dateDeb, $dateFin, $priorite) { - $this->titre = $titre; - $this->description = $description; + private string $idlist; // # id associating task to list + + function __construct($id,$titre,$description,$priorite,$idl,$dateDeb="",$dateFin="") { + $this->set_id($id); + $this->set_titre($titre); + $this->set_description($description); + $this->set_priorite($priorite); + $this->set_dateDeb($dateDeb); + $this->set_dateFin($dateFin); + $this->set_idlist($idl); } function get_id() {