Exemple #1
0
 /**
  * Returns the singleton instance of the class.
  *
  * @since 2.1.0
  *
  * @return object The Optin_Monster_Vendor object.
  */
 public static function get_instance()
 {
     if (!isset(self::$instance) && !self::$instance instanceof Optin_Monster_Vendor) {
         self::$instance = new Optin_Monster_Vendor();
     }
     return self::$instance;
 }
Exemple #2
0
 /**
  * Primary class constructor.
  *
  * @since 2.1.0
  */
 public function __construct()
 {
     // Load the base class object.
     $this->base = Optin_Monster_Vendor::get_instance();
 }