ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Settings.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 class Settings
29 {
30  protected bool $readingTimeEnabled = false;
31 
32  public function isReadingTimeEnabled(): bool
33  {
35  }
36 
37  public function withEnabledReadingTime(): self
38  {
39  $clone = clone $this;
40  $clone->readingTimeEnabled = true;
41 
42  return $clone;
43  }
44 
45  public function withDisabledReadingTime(): self
46  {
47  $clone = clone $this;
48  $clone->readingTimeEnabled = false;
49 
50  return $clone;
51  }
52 }