instance() public static méthode

Instantiate and return the unique Awesome Support object
Since: 3.2.5
public static instance ( ) : object
Résultat object Awesome_Support Unique instance of Awesome Support
 /**
  * Instantiate and return the unique Awesome Support object
  *
  * @since     3.2.5
  * @return object Awesome_Support Unique instance of Awesome Support
  */
 public static function instance()
 {
     if (!isset(self::$instance) && !self::$instance instanceof Awesome_Support) {
         self::$instance = new Awesome_Support();
         self::$instance->setup_constants();
         self::$instance->includes();
         self::$instance->session = new WPAS_Session();
         if (is_admin()) {
             self::$instance->includes_admin();
             self::$instance->admin_notices = new AS_Admin_Notices();
         }
     }
     return self::$instance;
 }
 /**
  * Return an instance of this class.
  *
  * @since     1.0.0
  *
  * @return    object    A single instance of this class.
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 /**
  * Instantiate and return the unique Awesome Support object
  *
  * @since     3.2.5
  * @return object Awesome_Support Unique instance of Awesome Support
  */
 public static function instance()
 {
     if (!isset(self::$instance) && !self::$instance instanceof Awesome_Support) {
         self::$instance = new Awesome_Support();
         self::$instance->init();
     }
     return self::$instance;
 }