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.
27 lines
421 B
27 lines
421 B
<?php
|
|
|
|
class Liste {
|
|
private int $id;
|
|
private string $nom;
|
|
private $taches;
|
|
|
|
function __construct(int $i, string $n, $t){
|
|
$this->id=$i;
|
|
$this->nom=$n;
|
|
$this->taches=$t;
|
|
}
|
|
|
|
function get_id(): int {
|
|
return $this->id;
|
|
}
|
|
|
|
function get_nom(): string {
|
|
return $this->nom;
|
|
}
|
|
|
|
function get_taches(): array {
|
|
return $this->taches;
|
|
}
|
|
}
|
|
|
|
?>
|