コード例 #1
0
ファイル: Response.php プロジェクト: damnstupidsimple/core
 static function get($key = null)
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance->returnResponse($key);
 }
コード例 #2
0
ファイル: Response.php プロジェクト: jwcn/statistics
 public function setResponse($response)
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     $this->response = $response;
     return true;
 }