ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
Settings.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class Settings
24 {
25  public function __construct(
26  private int $test_obj_id,
27  private bool $show_hidden_questions = false,
28  private bool $show_optional_questions = false,
29  private bool $show_best_solution = true,
30  private bool $show_feedback = true,
31  private bool $question_text_only = false,
32  private bool $show_recapitulation = false
33  ) {
34  }
35 
36  public function getTestObjId(): int
37  {
38  $this->test_obj_id;
39  }
40 
41  public function getShowHiddenQuestions(): bool
42  {
43  return $this->show_hidden_questions;
44  }
45 
46  public function getShowOptionalQuestions(): bool
47  {
48  return $this->show_optional_questions;
49  }
50 
51  public function getShowBestSolution(): bool
52  {
53  return $this->show_best_solution;
54  }
55 
56  public function getShowFeedback(): bool
57  {
58  return $this->show_feedback;
59  }
60 
61  public function getQuestionTextOnly(): bool
62  {
63  return $this->question_text_only;
64  }
65 
66  public function getShowRecapitulation(): bool
67  {
68  return $this->show_recapitulation;
69  }
70 }
__construct(private int $test_obj_id, private bool $show_hidden_questions=false, private bool $show_optional_questions=false, private bool $show_best_solution=true, private bool $show_feedback=true, private bool $question_text_only=false, private bool $show_recapitulation=false)
Definition: Settings.php:25