/** * getInstance * Singleton method to return static instance of TrackerManager * @returns static TrackerManager instance */ static function getInstance() { if (!isset(self::$instance)) { self::$instance = new TrackerManager(); //Set global variable for tracker monitor instances that are disabled self::$instance->setup(); } // if return self::$instance; }
/** * Singleton method to reset static instance of TrackerManager. May be used in unit tests in order * to make sure that current instance configuration is up to date. */ public static function resetInstance() { self::$instance = null; }