You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.6 KiB
74 lines
1.6 KiB
<?php
|
|
class Task{
|
|
private int $id;
|
|
private string $titre;
|
|
private string $description;
|
|
private DateTime $dateDeb;
|
|
private DateTime $dateFin;
|
|
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;
|
|
}
|
|
|
|
function get_id() {
|
|
return $this->id;
|
|
}
|
|
|
|
function set_id($id) {
|
|
$this->id = $id;
|
|
}
|
|
|
|
function get_titre() {
|
|
return $this->titre;
|
|
}
|
|
|
|
function set_titre($titre) {
|
|
$this->titre = $titre;
|
|
}
|
|
|
|
function get_description() {
|
|
return $this->description;
|
|
}
|
|
|
|
function set_description($description) {
|
|
$this->description = $description;
|
|
}
|
|
|
|
function get_dateDeb() {
|
|
return $this->dateDeb;
|
|
}
|
|
|
|
function set_dateDeb($dateDeb) {
|
|
$this->dateDeb = $dateDeb;
|
|
}
|
|
|
|
function get_dateFin() {
|
|
return $this->dateFin;
|
|
}
|
|
|
|
function set_dateFin($dateFin) {
|
|
$this->dateFin = $dateFin;
|
|
}
|
|
|
|
function get_priorite() {
|
|
return $this->priorite;
|
|
}
|
|
|
|
function set_priorite($priorite) {
|
|
$this->priorite = $priorite;
|
|
}
|
|
// # getter et setter pour idList
|
|
function get_idList() {
|
|
return $this->idList;
|
|
}
|
|
|
|
function set_idList($idList) {
|
|
$this->idList = $idList;
|
|
}
|
|
|
|
}
|
|
?>
|