class Historique {
- protected $id, $installation;
+ protected $id, $installation, $alertes;
/// CONSTRUCTEUR
- function __construct($id = null, $installation = null) {
+ function __construct($id = null, $installation = null, $alertes = null) {
$this -> id = $id;
$this -> installation = $installation;
+ $this -> alertes = $alertes;
}
public function getJSONP() {
$array["id"] = $this -> id;
$array["installation"] = $this -> installation;
+ $array["alertes"] = $this -> alertes;
return json_encode($array);
}
/// GETTERS
public function getId() { return $this -> id; }
public function getInstallation() { return $this->installation; }
+ public function getAlertes() { return $this->alertes; }
/// SETTERS
public function setId($id) { $this -> id = $id; }
public function setInstallation($installation) { $this->installation = $installation; }
+ public function setAlertes($alertes) { $this->alertes = $alertes; }
}