/** * Set the singleton instance to a given object */ static function setSingleton($instance) { self::$instance = $instance; }