public function setAllowLateSubmission($allowLateSubmission)
    {
        if (is_bool($allowLateSubmission)) {
            $this->allowLateSubmission = $allowLateSubmission;
        } else {
            $msg = "AllowLateSubmission must be a boolean, '" . gettype($allowLateSubmission) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }