parent
e1c9f9873a
commit
cca15a1572
@ -1,19 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace modeles;
|
||||
|
||||
class Simplemodel
|
||||
{
|
||||
|
||||
//constructeur
|
||||
//vide
|
||||
|
||||
|
||||
function get_data() :string
|
||||
{
|
||||
return "Mon modèle ne fait rien";
|
||||
}
|
||||
|
||||
//fin modèles
|
||||
}
|
||||
?>
|
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace modeles;
|
||||
|
||||
class Tache
|
||||
{
|
||||
private string $nom;
|
||||
private string $description;
|
||||
private Date $dateCreation;
|
||||
private bool $estValide;
|
||||
|
||||
public function __construct(String $nom, string $description, Date $dateCreation){
|
||||
$this->nom = $nom;
|
||||
$this->description = $description;
|
||||
$this->dateCreation = $dateCreation;
|
||||
$this->estValide = false;
|
||||
}
|
||||
|
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace modeles;
|
||||
|
||||
class Utilisateur
|
||||
{
|
||||
|
||||
private string $nom;
|
||||
private string $prenom;
|
||||
private string $pseudo
|
||||
private string $email;
|
||||
private string $motDePasse;
|
||||
private bool $isAdmin;
|
||||
|
||||
public function __construct(string $nom, string $prenom, string $pseudo, string $email,string $motDePasse, bool $isAdmin){
|
||||
$this->nom = $nom;
|
||||
$this->prenom = $prenom;
|
||||
$this->pseudo = $pseudo;
|
||||
$this->email = $email;
|
||||
$this->motDePasse = $motDePasse;
|
||||
$this->isAdmin = $isAdmin;
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in new issue