ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
Settings.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
12 class Settings
13 {
14  protected bool $readingTimeEnabled = false;
15 
16  public function isReadingTimeEnabled(): bool
17  {
19  }
20 
21  public function withEnabledReadingTime(): self
22  {
23  $clone = clone $this;
24  $clone->readingTimeEnabled = true;
25 
26  return $clone;
27  }
28 
29  public function withDisabledReadingTime(): self
30  {
31  $clone = clone $this;
32  $clone->readingTimeEnabled = false;
33 
34  return $clone;
35  }
36 }