/** * Main WC_Gateway_TrxServices Instance * * Ensures only one instance of WC_Gateway_TrxServices is loaded or can be loaded. * * @static * @see WC_Gateway_TrxServices() * @return WC_Gateway_TrxServices */ public static function get_instance() { if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
/** * Returns the main instance of WC_Gateway_TrxServices to prevent the need to use globals. * * @return WC_Gateway_TrxServices */ function wc_gateway_trxservices() { include_once 'includes/class-wc-gateway-trxservices.php'; return WC_Gateway_TrxServices::get_instance(); }