class Version {
- protected $id, $valeur, $produit, $nature;
+ protected $id, $value, $product, $nature;
/// CONSTRUCTOR
- function __construct($id = null, $valeur = null, $produit = null, $nature = null) {
+ function __construct($id = null, $value = null, $product = null, $nature = null) {
$this -> id = $id;
- $this -> valeur = $valeur;
- $this -> produit = $produit;
+ $this -> value = $value;
+ $this -> product = $product;
$this -> nature = $nature;
}
public function getJSONP() {
$array["id"] = $this -> id;
- $array["valeur"] = $this -> valeur;
- $array["produit"] = $this -> produit;
+ $array["value"] = $this -> value;
+ $array["product"] = $this -> product;
$array["nature"] = $this -> nature;
return json_encode($array);
/// GETTERS
public function getId() { return $this -> id; }
- public function getValeur() { return $this->valeur; }
- public function getProduit() { return $this->produit; }
+ public function getValue() { return $this->value; }
+ public function getProduct() { return $this->product; }
public function getNature() { return $this->nature; }
/// SETTERS
public function setId($id) { $this -> id = $id; }
- public function setValeur($valeur) { $this->valeur = $valeur; }
- public function setProduit($produit) { $this->produit = $produit; }
+ public function setValue($value) { $this->value = $value; }
+ public function setProduct($product) { $this->product = $product; }
public function setNature($nature) { $this->nature = $nature; }
}