19 declare(strict_types=1);
37 SettingsScoring $settings_scoring,
46 $settings_result_summary,
47 $settings_result_details,
48 $settings_gamification
53 $settings_result_summary = $settings_result_summary
65 throw new \LogicException(
'TestId mismatch in ' . get_class($setting));
77 $clone->settings_scoring = $clone->settings_scoring->withTestId($test_id);
78 $clone->settings_result_summary = $clone->settings_result_summary->withTestId($test_id);
79 $clone->settings_result_details = $clone->settings_result_details->withTestId($test_id);
80 $clone->settings_gamification = $clone->settings_gamification->withTestId($test_id);
93 $clone->settings_scoring = $settings;
104 $clone = clone $this;
105 $clone->settings_result_summary = $settings;
116 $clone = clone $this;
117 $clone->settings_result_details = $settings;
129 $clone = clone $this;
130 $clone->settings_gamification = $settings;
137 return $this->settings_scoring->toLog($additional_info)
138 + $this->settings_result_summary->toLog($additional_info)
139 + $this->settings_result_details->toLog($additional_info)
140 + $this->settings_gamification->toLog($additional_info);
withGamificationSettings(SettingsGamification $settings)
withResultDetailsSettings(SettingsResultDetails $settings)
__construct(int $test_id, SettingsScoring $settings_scoring, SettingsResultSummary $settings_result_summary, SettingsResultDetails $settings_result_details, SettingsGamification $settings_gamification)
withResultSummarySettings(SettingsResultSummary $settings)
SettingsResultSummary $settings_result_summary
getResultDetailsSettings()
getGamificationSettings()
throwOnDifferentTestId(TestSettings $setting)
SettingsResultDetails $settings_result_details
getResultSummarySettings()
withShowPassDetails(bool $flag)
SettingsScoring $settings_scoring
SettingsGamification $settings_gamification
getArrayForLog(AdditionalInformationGenerator $additional_info)
withScoringSettings(SettingsScoring $settings)