/** * 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; }
/** * Primary class constructor. * * @since 2.1.0 */ public function __construct() { // Load the base class object. $this->base = Optin_Monster_Vendor::get_instance(); }