public static function run($dataDir = null) { $except = new CalendarException(); $except->setEnteredByOccurrences(true); $except->setOccurrences(5); $calendarExceptionType = new CalendarExceptionType(); $except->setType($calendarExceptionType->YearlyByDay); print "Set Occurences for exeptions" . PHP_EOL; }