diff --git a/php/Pollution.php b/php/Pollution.php index 0c38aa5..3f5f3b2 100644 --- a/php/Pollution.php +++ b/php/Pollution.php @@ -6,4 +6,10 @@ class Pollution private int $id; private int $niveauPollution; private string $description; + + function __contruct(int $id,int $niveauPollution,string $description){ + $this->id = $id; + $this->niveauPollution = $niveauPollution; + $this->description = $description; + } } \ No newline at end of file diff --git a/php/Produits.php b/php/Produits.php index f236321..0d00976 100644 --- a/php/Produits.php +++ b/php/Produits.php @@ -13,4 +13,18 @@ class Produits private bool $estEngrais; private bool $estPeinture; private string $autreProduit; + + function __contruct(int $id,bool $estCremeSolaire,bool $estCremeParfum,bool $estCremeHydratante,bool $estMaquillage, + bool $estEssence,bool $estCigarette,bool $estEngrais,bool $estPeinture,string $autreProduit){ + $this->id = $id; + $this->estCremeSolaire = $estCremeSolaire; + $this->estCremeParfum = $estCremeParfum; + $this->estCremeHydratante = $estCremeHydratante; + $this->estMaquillage = $estMaquillage; + $this->estEssence = $estEssence; + $this->estCigarette = $estCigarette; + $this->estEngrais = $estEngrais; + $this->estPeinture = $estPeinture; + $this->autreProduit = $autreProduit; + } } \ No newline at end of file diff --git a/php/Spot.php b/php/Spot.php index 1653f8f..221cf40 100644 --- a/php/Spot.php +++ b/php/Spot.php @@ -8,4 +8,12 @@ class Spot private Ville $ville; private MeteoSpot $meteo; private Pollution $pollution; + + function __contruct(int $id,string $nom,Ville $ville,Pollution $pollution,MeteoSpot $meteo){ + $this->id = $id; + $this->nom = $nom; + $this->ville = $ville; + $this->pollution = $pollution; + $this->meteo = $meteo; + } } \ No newline at end of file diff --git a/php/Utilisateur.php b/php/Utilisateur.php index 388aa62..2bd737e 100644 --- a/php/Utilisateur.php +++ b/php/Utilisateur.php @@ -10,4 +10,12 @@ class Utilisateur private string $mail; private string $password; + function __contruct(int $id,string $nom,string $prenom,string $pseudo,string $mail,string $password){ + $this->id = $id; + $this->nom = $nom; + $this->prenom = $prenom; + $this->pseudo = $pseudo; + $this->mail = $mail; + $this->password = $password; + } } \ No newline at end of file diff --git a/php/Ville.php b/php/Ville.php index a441a24..e7a1b2d 100644 --- a/php/Ville.php +++ b/php/Ville.php @@ -8,4 +8,12 @@ class Ville private string $codePostal; private int $temperature; private MeteoVille $meteo; + + function __contruct(int $id,string $nom,string $codePostal,string $temperature,MeteoVille $meteo){ + $this->id = $id; + $this->nom = $nom; + $this->codePostal = $codePostal; + $this->temperature = $temperature; + $this->meteo = $meteo; + } } \ No newline at end of file