woocommerce-paypal-payments/modules/ppcp-wc-gateway/resources/js/common/display-manager/condition/BaseCondition.js

18 lines
262 B
JavaScript
Raw Normal View History

class BaseCondition {
2024-07-12 12:58:34 +02:00
constructor( config, triggerUpdate ) {
this.config = config;
this.status = false;
this.triggerUpdate = triggerUpdate;
}
2024-07-12 12:58:34 +02:00
get key() {
return this.config.key;
}
2024-07-12 12:58:34 +02:00
register() {
// To override.
}
}
export default BaseCondition;