contructeur

This commit is contained in:
lemoinealexandre
2020-12-04 02:52:32 +01:00
parent 99d70dfeb4
commit 3f07c6b0b4
5 changed files with 45 additions and 0 deletions

View File

@@ -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;
}
}