ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ClientSettings.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use JsonSerializable;
24
29class ClientSettings implements JsonSerializable
30{
31 private bool $hashing = true;
32 private bool $logging = false;
33
34 public function setHashing(bool $hashing): self
35 {
36 $this->hashing = $hashing;
37
38 return $this;
39 }
40
41 public function setLogging(bool $logging): self
42 {
43 $this->logging = $logging;
44
45 return $this;
46 }
47
51 public function jsonSerialize(): mixed
52 {
53 return [
54 'hashing' => $this->hashing,
55 'logging' => $this->logging,
56 ];
57 }
58}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...