Beispiel #1
0
 /**
  * Unit testing purpose only
  */
 public static function deleteTestingInstance()
 {
     self::$instance = null;
 }
Beispiel #2
0
 /**
  * Get a singleton context
  *
  * @return Context
  */
 public static function getContext()
 {
     if (!isset(self::$instance)) {
         self::$instance = new Context();
     }
     return self::$instance;
 }