parent
4f8184f8ef
commit
6311b45d19
@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
class ListTask{
|
||||||
|
private int $id;
|
||||||
|
private array $taches;
|
||||||
|
|
||||||
|
function __construct($id, $taches) {
|
||||||
|
$this->id = $id;
|
||||||
|
$this->taches = $taches;
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_id() {
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
function set_id($id) {
|
||||||
|
$this->id = $id;
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_taches() {
|
||||||
|
return $this->taches;
|
||||||
|
}
|
||||||
|
|
||||||
|
function set_taches($taches) {
|
||||||
|
$this->taches = $taches;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
@ -0,0 +1,63 @@
|
|||||||
|
<?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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Reference in new issue