Constructeur
This commit is contained in:
@@ -6,4 +6,10 @@ class Pollution
|
||||
private int $id;
|
||||
private int $niveauPollution;
|
||||
private string $description;
|
||||
|
||||
function __contruct(int $id,int $niveauPollution,string $description){
|
||||
$this->id = $id;
|
||||
$this->niveauPollution = $niveauPollution;
|
||||
$this->description = $description;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user