コード例 #1
0
ファイル: ApiHandler.php プロジェクト: kailIII/pos-erp
 public function __construct()
 {
     // Get an error dispatcher
     $this->error_dispatcher = ApiHttpErrors::getInstance();
     // Declare response as an array
     $this->response = array();
 }
コード例 #2
0
ファイル: ApiHttpErrors.php プロジェクト: kailIII/pos-erp
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }