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.
56 lines
889 B
56 lines
889 B
<?php
|
|
class Tache
|
|
{
|
|
// Attributs
|
|
private $nom;
|
|
private $fait;
|
|
private $commentaire;
|
|
private $tacheID;
|
|
|
|
// Constructeur
|
|
public function __construct(string $nom, bool $estFait=false, string $commentaire="", int $tacheID)
|
|
{
|
|
$this->nom = $nom;
|
|
$this->fait = $estFait;
|
|
$this->commentaire = $commentaire;
|
|
$this->tacheID = $tacheID;
|
|
}
|
|
|
|
|
|
// Accesseurs / Mutatteurs
|
|
public function getNom() : string
|
|
{
|
|
return $this->nom;
|
|
}
|
|
|
|
public function setNom(string $nouveauNom)
|
|
{
|
|
$this->nom = $nouveauNom;
|
|
}
|
|
|
|
public function getCommentaire() : string
|
|
{
|
|
return $this->commentaire;
|
|
}
|
|
|
|
public function setCommentaire(string $nouveauComm)
|
|
{
|
|
$this->commentaire = $nouveauComm;
|
|
}
|
|
|
|
public function estFait() : bool
|
|
{
|
|
return $this->fait;
|
|
}
|
|
|
|
public function setFait(bool $fait)
|
|
{
|
|
$this->fait = $fait;
|
|
}
|
|
|
|
public function getID() : int
|
|
{
|
|
return $this->tacheID;
|
|
}
|
|
}
|