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