Constructeur
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user