contructeur
This commit is contained in:
parent
99d70dfeb4
commit
3f07c6b0b4
@ -7,4 +7,12 @@ class Hystorique
|
||||
private Utilisateur $utilisateur;
|
||||
private Spot $spot;
|
||||
private Pointage $pointage;
|
||||
|
||||
public function __construct(int $id, Utilisateur $utilisateur, Spot $spot, Pointage $pointage)
|
||||
{
|
||||
$this->id=$id;
|
||||
$this->utilisateur=$utilisateur;
|
||||
$this->spot=$spot;
|
||||
$this->pointage=$pointage;
|
||||
}
|
||||
}
|
@ -6,4 +6,12 @@ class Joueur
|
||||
private int $id;
|
||||
private bool $estVivant;
|
||||
private bool $estImposteur;
|
||||
|
||||
|
||||
public function __construct(int $id,bool $estVivant,bool $estImposteur)
|
||||
{
|
||||
$this->id=$id;
|
||||
$this->estVivant=$estVivant;
|
||||
$this->estImposteur=$estImposteur;
|
||||
}
|
||||
}
|
@ -7,4 +7,12 @@ class MeteoSpot
|
||||
private int $houle;
|
||||
private int $maree;
|
||||
private int $vent;
|
||||
|
||||
public function __construct(int $id,int $houle,int $maree,int $vent)
|
||||
{
|
||||
$this->id=$id;
|
||||
$this->houle=$houle;
|
||||
$this->mare=$maree;
|
||||
$this->vent=$vent;
|
||||
}
|
||||
}
|
@ -6,4 +6,12 @@ class MeteoVille
|
||||
private int $id;
|
||||
private int $temperature;
|
||||
private int $vent;
|
||||
|
||||
|
||||
public function __construct(int $id,int $temperature,int $vent)
|
||||
{
|
||||
$this->id=$id;
|
||||
$this->temperature=$temperature;
|
||||
$this->vent=$vent;
|
||||
}
|
||||
}
|
@ -11,4 +11,17 @@ class Pointage
|
||||
private int $bateauVoile;
|
||||
private Produits $produit;
|
||||
private int $niveauDechet;
|
||||
|
||||
|
||||
public function __construct(int $id,int $nbBaigneur,int $nbPratiquant,int $bateauPeche, int $bateauLoisir,int $bateauVoile, Produits $produit,int $niveauDechet)
|
||||
{
|
||||
$this->id=$id;
|
||||
$this->nbBaigneur=$nbBaigneur;
|
||||
$this->nbPratiquant=$nbPratiquant;
|
||||
$this->bateauPeche=$bateauPeche;
|
||||
$this->bateauLoisir=$bateauLoisir;
|
||||
$this->bateauVoile=$bateauVoile;
|
||||
$this->produit=$produit;
|
||||
$this->niveauDechet=$niveauDechet;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user