Constructeur
This commit is contained in:
parent
0426095cba
commit
09b02f768e
@ -6,4 +6,10 @@ class Pollution
|
|||||||
private int $id;
|
private int $id;
|
||||||
private int $niveauPollution;
|
private int $niveauPollution;
|
||||||
private string $description;
|
private string $description;
|
||||||
|
|
||||||
|
function __contruct(int $id,int $niveauPollution,string $description){
|
||||||
|
$this->id = $id;
|
||||||
|
$this->niveauPollution = $niveauPollution;
|
||||||
|
$this->description = $description;
|
||||||
|
}
|
||||||
}
|
}
|
@ -13,4 +13,18 @@ class Produits
|
|||||||
private bool $estEngrais;
|
private bool $estEngrais;
|
||||||
private bool $estPeinture;
|
private bool $estPeinture;
|
||||||
private string $autreProduit;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -8,4 +8,12 @@ class Spot
|
|||||||
private Ville $ville;
|
private Ville $ville;
|
||||||
private MeteoSpot $meteo;
|
private MeteoSpot $meteo;
|
||||||
private Pollution $pollution;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -10,4 +10,12 @@ class Utilisateur
|
|||||||
private string $mail;
|
private string $mail;
|
||||||
private string $password;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
@ -8,4 +8,12 @@ class Ville
|
|||||||
private string $codePostal;
|
private string $codePostal;
|
||||||
private int $temperature;
|
private int $temperature;
|
||||||
private MeteoVille $meteo;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user