ILIAS  release_7 Revision v7.30-3-g800a261c036
Settings.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
3
5
12{
14 protected $readingTimeEnabled = false;
15
19 public function isReadingTimeEnabled() : bool
20 {
22 }
23
27 public function withEnabledReadingTime() : self
28 {
29 $clone = clone $this;
30 $clone->readingTimeEnabled = true;
31
32 return $clone;
33 }
34
38 public function withDisabledReadingTime() : self
39 {
40 $clone = clone $this;
41 $clone->readingTimeEnabled = false;
42
43 return $clone;
44 }
45}
An exception for terminatinating execution or to throw for unit testing.