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

@@ -7,4 +7,12 @@ class MeteoSpot
private int $houle;
private int $maree;
private int $vent;
public function __construct(int $id,int $houle,int $maree,int $vent)
{
$this->id=$id;
$this->houle=$houle;
$this->mare=$maree;
$this->vent=$vent;
}
}