ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ViewConfiguration.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24{
25 public function __construct(
26 private bool $interactive,
27 private readonly bool $show_marks,
28 private bool $show_best_response,
29 private readonly bool $show_feedback
30 ) {
31 }
32
33 public function isInteractive(): bool
34 {
35 return $this->interactive;
36 }
37
38 public function showMarks(): bool
39 {
40 return $this->show_marks;
41 }
42
43 public function showBestResponse(): bool
44 {
45 return $this->show_best_response;
46 }
47
48 public function withShowBestResponse(): self
49 {
50 $clone = clone $this;
51 $clone->interactive = false;
52 $clone->show_best_response = true;
53 return $clone;
54 }
55
56 public function showFeedback(): bool
57 {
58 return $this->show_feedback;
59 }
60
61 public function getViewMode(): ViewMode
62 {
63 return $this->view_mode;
64 }
65}
__construct(private bool $interactive, private readonly bool $show_marks, private bool $show_best_response, private readonly bool $show_feedback)