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.
63 lines
1.4 KiB
63 lines
1.4 KiB
<?php
|
|
class Task{
|
|
private int $id;
|
|
private string $titre;
|
|
private string $description;
|
|
private DateTime $dateDeb;
|
|
private DateTime $dateFin;
|
|
private string $priorite;
|
|
|
|
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;
|
|
}
|
|
}
|
|
?>
|