示例#1
0
 static function get($key = null)
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance->returnResponse($key);
 }
示例#2
0
 public function setResponse($response)
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     $this->response = $response;
     return true;
 }