import TravelProduct from '../../TravelProduct/entity/TravelProduct'; export default class EventProduct extends TravelProduct { protected _from_date: string = null; protected _to_date: string = null; get from_date(): string { return this._from_date; } set from_date(value: string) { this._from_date = value; } get to_date(): string { return this._to_date; } set to_date(value: string) { this._to_date = value; } invalidFields(prefix: string = '') { let fields = super.invalidFields(prefix); !this.hasValue(this.from_date) && fields.push(`${prefix}from_date`); !this.hasValue(this.to_date) && fields.push(`${prefix}to_date`); return fields; } }