Modification chemin

This commit is contained in:
unknown 2020-12-04 03:19:36 +01:00
parent d9c456992b
commit dbe009f11f
10 changed files with 23 additions and 5 deletions

View File

@ -7,7 +7,7 @@ class Pollution
private int $niveauPollution;
private string $description;
function __contruct(int $id,int $niveauPollution,string $description){
function __construct(int $id,int $niveauPollution,string $description){
$this->id = $id;
$this->niveauPollution = $niveauPollution;
$this->description = $description;

View File

@ -14,7 +14,7 @@ class Produits
private bool $estPeinture;
private string $autreProduit;
function __contruct(int $id,bool $estCremeSolaire,bool $estCremeParfum,bool $estCremeHydratante,bool $estMaquillage,
function __construct(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;

View File

@ -9,7 +9,7 @@ class Spot
private MeteoSpot $meteo;
private Pollution $pollution;
function __contruct(int $id,string $nom,Ville $ville,Pollution $pollution,MeteoSpot $meteo){
function __construct(int $id,string $nom,Ville $ville,Pollution $pollution,MeteoSpot $meteo){
$this->id = $id;
$this->nom = $nom;
$this->ville = $ville;

View File

@ -10,7 +10,7 @@ class Utilisateur
private string $mail;
private string $password;
function __contruct(int $id,string $nom,string $prenom,string $pseudo,string $mail,string $password){
function __construct(int $id,string $nom,string $prenom,string $pseudo,string $mail,string $password){
$this->id = $id;
$this->nom = $nom;
$this->prenom = $prenom;
@ -18,4 +18,22 @@ class Utilisateur
$this->mail = $mail;
$this->password = $password;
}
/**
* @return string
*/
public function getNom(): string
{
return $this->nom;
}
/**
* @param string $nom
*/
public function setNom(string $nom): void
{
$this->nom = $nom;
}
}

View File

@ -9,7 +9,7 @@ class Ville
private int $temperature;
private MeteoVille $meteo;
function __contruct(int $id,string $nom,string $codePostal,string $temperature,MeteoVille $meteo){
function __construct(int $id,string $nom,string $codePostal,string $temperature,MeteoVille $meteo){
$this->id = $id;
$this->nom = $nom;
$this->codePostal = $codePostal;