function __construct($y, $p, $t) { $this->counter = 0; $this->year = $y; $this->program = $p; $this->courses = new SectionList(); $this->term = $t; $this->cursched = new SectionList(); $this->Schedules = array(); //Array of SectionLists $this->pattern = Pattern::getPatternByProgram($this->program); $this->calculateCourses(); $this->calculateConflictFreeSchedules(); }