--- /dev/null
+<?php
+
+ require_once('protected/required.php');
+
+ class Client {
+
+ protected $id, $identifiantAP, $nom;
+
+ /// CONSTRUCTOR
+ function __construct($id = null, $identifiantAP = null, $nom = null) {
+
+ $this -> id = $id;
+ $this -> identifiantAP = $identifiantAP;
+ $this -> nom = $nom;
+
+ }
+
+ public function getJSON() {
+ return json_encode(get_object_vars($this));
+ }
+
+ public function getJSONP() {
+ $array["id"] = $this -> id;
+ $array["identifiantAP"] = $this -> identifiantAP;
+ $array["nom"] = $this -> nom;
+
+ return json_encode($array);
+ }
+
+ /// GETTERS
+ public function getId() { return $this -> id; }
+ public function getIdentifiantAP() { return $this->identifiantAP; }
+ public function getNom() { return $this->nom; }
+
+ /// SETTERS
+ public function setId($id) { $this -> id = $id; }
+ public function setIdentifiantAP($identifiantAP) { $this->identifiantAP = $identifiantAP; }
+ public function setNom($nom) { $this->nom = $nom; }
+
+ }
+
+?>
\ No newline at end of file