NDI-2020/php/Ville.php

19 lines
439 B
PHP
Raw Normal View History

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
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;
}
2020-12-04 01:22:13 +01:00
}