예제 #1
0
 public function __construct()
 {
     // Get an error dispatcher
     $this->error_dispatcher = ApiHttpErrors::getInstance();
     // Declare response as an array
     $this->response = array();
 }
예제 #2
0
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }