contructeur

This commit is contained in:
lemoinealexandre
2020-12-04 02:52:32 +01:00
parent 99d70dfeb4
commit 3f07c6b0b4
5 changed files with 45 additions and 0 deletions

View File

@@ -6,4 +6,12 @@ class MeteoVille
private int $id;
private int $temperature;
private int $vent;
public function __construct(int $id,int $temperature,int $vent)
{
$this->id=$id;
$this->temperature=$temperature;
$this->vent=$vent;
}
}