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