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.

58 lines
1.0 KiB

<?php
class Tache
{
private int $id;
private string $name;
private string $content;
private bool $completed;
function __construct( int $id, string $name, string $content, bool $completed)
{
$this->id=$id;
$this->name=$name;
$this->content=$content;
$this->completed=$completed;
}
public function __toString()
{
return $this->id . " " . $this->name . " " . $this->content . " " . $this->completed;
}
public function getId(){
return $this->id;
}
public function getName(){
return $this->name;
}
public function getContent(){
return $this->content;
}
public function getCompleted(){
return $this->completed;
}
public function setId(int $id){
$this->id=$id;
}
public function setName(string $name){
$this->name=$name;
}
public function setContent(string $content){
$this->content=$content;
}
public function setCompleted(bool $completed){
$this->completed=$completed;
}
}
?>