19declare(strict_types=1);
58 if ($setting->
getTestId() !== $this->getTestId()) {
59 throw new \LogicException(
'TestId mismatch in ' . get_class($setting));
71 $clone->settings_scoring = $clone->settings_scoring->withTestId(
$test_id);
72 $clone->settings_result_summary = $clone->settings_result_summary->withTestId(
$test_id);
73 $clone->settings_result_details = $clone->settings_result_details->withTestId(
$test_id);
74 $clone->settings_gamification = $clone->settings_gamification->withTestId(
$test_id);
99 $clone->settings_result_summary =
$settings;
110 $clone = clone $this;
111 $clone->settings_result_details =
$settings;
122 $clone = clone $this;
123 $clone->settings_gamification =
$settings;
ilObjTestSettingsResultDetails $settings_result_details
withScoringSettings(ilObjTestSettingsScoring $settings)
withResultSummarySettings(ilObjTestSettingsResultSummary $settings)
ilObjTestSettingsScoring $settings_scoring
ilObjTestSettingsGamification $settings_gamification
throwOnDifferentTestId(TestSettings $setting)
getResultSummarySettings()
__construct(int $test_id, ilObjTestSettingsScoring $settings_scoring, ilObjTestSettingsResultSummary $settings_result_summary, ilObjTestSettingsResultDetails $settings_result_details, ilObjTestSettingsGamification $settings_gamification)
getGamificationSettings()
getResultDetailsSettings()
withGamificationSettings(ilObjTestSettingsGamification $settings)
withResultDetailsSettings(ilObjTestSettingsResultDetails $settings)
ilObjTestSettingsResultSummary $settings_result_summary
withShowPassDetails(bool $flag)