ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Settings.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
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}