arch-unit-ts
Version:
19 lines • 516 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SimpleConditionEvents = void 0;
class SimpleConditionEvents {
violations = [];
add(event) {
if (event.isViolation()) {
this.violations.push(event);
}
}
getViolating() {
return this.violations;
}
containViolation() {
return this.violations.length > 0;
}
}
exports.SimpleConditionEvents = SimpleConditionEvents;
//# sourceMappingURL=SimpleConditionEvents.js.map