ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilECSAuth.php
Go to the documentation of this file.
1 <?php
2 
18 declare(strict_types=1);
19 
23 class ilECSAuth implements JsonSerializable
24 {
25  protected ilLogger $log;
26  protected array $mids = array();
27 
28  private string $realm = '';
29  private string $url = '';
30  private ?int $pid = null;
31 
32  public function __construct()
33  {
34  global $DIC;
35 
36  $this->log = $DIC->logger()->wsrv();
37  }
38 
39  public function setPid(int $a_pid): void
40  {
41  $this->pid = $a_pid;
42  }
43 
44  public function getPid(): int
45  {
46  return $this->pid;
47  }
48 
49  public function setUrl(string $a_url): void
50  {
51  $this->url = $a_url;
52  }
53 
54  public function getUrl(): string
55  {
56  return $this->url;
57  }
58 
59  public function setRealm(string $a_realm): void
60  {
61  $this->realm = $a_realm;
62  }
63 
64  public function getRealm(): string
65  {
66  return $this->realm;
67  }
68 
69  public function jsonSerialize()
70  {
71  return [
72  "realm" => $this->realm
73  ];
74  }
75 }
setUrl(string $a_url)
global $DIC
Definition: feed.php:28
setRealm(string $a_realm)
ilLogger $log
setPid(int $a_pid)