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.
ProjetPHP/business/ListTask.php

62 lines
1.2 KiB

<?php
class ListTask{
private int $id;
private string $nom;
private array $taches;
private $owner;
private int $dc; // done counter
function __construct($id, $nom, $owner="", $dc = 0) {
$this->id = $id;
$this->nom = $nom;
$this->taches = [];
$this->owner = $owner;
$this->dc = $dc;
}
function get_id() {
return $this->id;
}
function set_id($id) {
$this->id = $id;
}
function get_nom() {
return $this->nom;
}
function set_nom($nom) {
$this->nom = $nom;
}
function get_taches() {
return $this->taches;
}
function set_taches($taches) {
$this->taches = $taches;
}
function get_owner() {
if($this->owner == "")
return NULL;
return $this->owner;
}
function set_owner($owner) {
$this->owner = $owner;
}
function get_dc() {
return $this->dc;
}
function set_dc($dc) {
$this->dc = $dc;
}
}
?>