2020-12-04 01:22:13 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class Ville
|
|
|
|
{
|
|
|
|
private int $id;
|
|
|
|
private string $nom;
|
|
|
|
private string $codePostal;
|
|
|
|
private int $temperature;
|
|
|
|
private MeteoVille $meteo;
|
2020-12-04 02:47:09 +01:00
|
|
|
|
2020-12-04 03:19:36 +01:00
|
|
|
function __construct(int $id,string $nom,string $codePostal,string $temperature,MeteoVille $meteo){
|
2020-12-04 02:47:09 +01:00
|
|
|
$this->id = $id;
|
|
|
|
$this->nom = $nom;
|
|
|
|
$this->codePostal = $codePostal;
|
|
|
|
$this->temperature = $temperature;
|
|
|
|
$this->meteo = $meteo;
|
|
|
|
}
|
2020-12-04 01:22:13 +01:00
|
|
|
}
|