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