import Discipline from "models/Discipline" ; interface IPeriod { startAt : Date ; endAt : Date ; discipline : Discipline ; } export default class Schedule { private weekday : number ; private periods : IPeriod [ ] ; constructor ( { weekday , periods } ) { this . weekday = weekday ; this . periods = periods ; } public setWeekday ( weekday ) { this . weekday = weekday ; } public getWeekday ( ) { return this . weekday ; } }