public static function add($tutorId, $termId, $repeatingDays, $timeStart, $timeEnd) { Tutor::validateId($tutorId); Term::validateId($termId); self::validateRepeatingDays($repeatingDays); $timeStart = self::convertDate($timeStart); $timeEnd = self::convertDate($timeEnd); $appointmentId = ScheduleFetcher::insert($tutorId, $termId, $repeatingDays, $timeStart, $timeEnd); // TODO: add option for admin to check if he wants an automatic email to be said on said user on his email return $appointmentId; }