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.

62 lines
1.1 KiB

<?php
require_once('user.php');
require_once('tache.php');
class Liste
{
private $id;
private $name;
private $private;
private $creator;
private $taches;
function __construct( int $id, string $name, boolean $private, User $creator, array $taches)
{
$this->id=$id;
$this->name=$name;
$this->$creator=$creator;
$this->$taches=$taches;
}
public function __toString()
{
return $this->id . " " . $this->name . " " . $this->creator;
}
public function getId(){
return $id;
}
public function getName(){
return $name;
}
public function getCreator(){
return $creator;
}
public function getTaches(){
return $taches;
}
public function setName(string $name){
$this->name=$name;
}
public function setPrivate(boolean $private){
$this->private=$private;
}
public function setCreator(string $creator){
$this->creator=$creator;
}
public function setTaches(array $taches){
$this->taches=$taches;
}
}
?>