/**
 * Composite check that combines multiple checks.
 *
 * Starts and stops all contained checks.
 */
export class ExperienceCheckComposite {
  constructor(checks) {
    this.checks = checks;
  }
  start(callback) {
    this.checks.forEach(check => check.start(callback));
  }
  stop() {
    this.checks.forEach(check => check.stop());
  }
}