HM\BackUpWordPress\Plugin::get_instance PHP Méthode

get_instance() public static méthode

Insures we always return the same object.
public static get_instance ( ) : Plugin
Résultat Plugin
    public static function get_instance()
    {
        if (!self::$instance instanceof Plugin) {
            self::$instance = new Plugin();
        }
        return self::$instance;
    }