--- /dev/null
+<?php
+
+ require_once('protected/required.php');
+
+ class Customer {
+
+ protected $id, $APId, $name;
+
+ /// CONSTRUCTOR
+ function __construct($id = null, $APId = null, $name = null) {
+
+ $this -> id = $id;
+ $this -> APId = $APId;
+ $this -> name = $name;
+
+ }
+
+ public function getJSON() {
+ return json_encode(get_object_vars($this));
+ }
+
+ public function getJSONP() {
+ $array["id"] = $this -> id;
+ $array["aPId"] = $this -> APId;
+ $array["name"] = $this -> name;
+
+ return json_encode($array);
+ }
+
+ /// GETTERS
+ public function getId() { return $this -> id; }
+ public function getAPId() { return $this->APId; }
+ public function getName() { return $this->name; }
+
+ /// SETTERS
+ public function setId($id) { $this -> id = $id; }
+ public function setAPId($APId) { $this->APId = $APId; }
+ public function setName($name) { $this->name = $name; }
+
+ }
+
+?>
\ No newline at end of file