ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilUserCertificate.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
26  private int $patternCertificateId;
27  private int $objId;
28  private string $objType;
29  private int $userId;
30  private string $userName;
31  private int $acquiredTimestamp;
32  private string $certificateContent;
33  private string $templateValues;
34  private int $validUntil;
35  private int $version;
36  private string $iliasVersion;
37  private bool $currentlyActive;
38  private ?int $id;
39  private ?string $backgroundImagePath;
40  private ?string $thumbnailImagePath;
41 
42  public function __construct(
43  int $patternCertificateId,
44  int $objId,
45  string $objType,
46  int $userId,
47  string $userName,
48  int $acquiredTimestamp,
49  string $certificateContent,
50  string $templateValues,
51  ?int $validUntil,
52  int $version,
53  string $iliasVersion,
54  bool $currentlyActive,
55  ?string $backgroundImagePath = null,
56  ?string $thumbnailImagePath = null,
57  ?int $id = null
58  ) {
59  $this->patternCertificateId = $patternCertificateId;
60  $this->objId = $objId;
61  $this->objType = $objType;
62  $this->userId = $userId;
63  $this->userName = $userName;
64  $this->acquiredTimestamp = $acquiredTimestamp;
65  $this->certificateContent = $certificateContent;
66  $this->templateValues = $templateValues;
67  $this->validUntil = (int) $validUntil;
68  $this->version = $version;
69  $this->iliasVersion = $iliasVersion;
70  $this->currentlyActive = $currentlyActive;
71  $this->backgroundImagePath = (string) $backgroundImagePath;
72  $this->thumbnailImagePath = (string) $thumbnailImagePath;
73  $this->id = $id;
74  }
75 
76  public function withId(int $id): self
77  {
78  $clone = clone $this;
79  $clone->id = $id;
80 
81  return $clone;
82  }
83 
84  public function withVersion(int $version): self
85  {
86  $clone = clone $this;
87  $clone->version = $version;
88 
89  return $clone;
90  }
91 
92  public function getPatternCertificateId(): int
93  {
95  }
96 
97  public function getObjId(): int
98  {
99  return $this->objId;
100  }
101 
102  public function getObjType(): string
103  {
104  return $this->objType;
105  }
106 
107  public function getUserId(): int
108  {
109  return $this->userId;
110  }
111 
112  public function getUserName(): string
113  {
114  return $this->userName;
115  }
116 
117  public function getAcquiredTimestamp(): int
118  {
120  }
121 
122  public function getCertificateContent(): string
123  {
125  }
126 
127  public function getTemplateValues(): string
128  {
129  return $this->templateValues;
130  }
131 
132  public function getValidUntil(): int
133  {
134  return $this->validUntil;
135  }
136 
137  public function getVersion(): int
138  {
139  return $this->version;
140  }
141 
142  public function getIliasVersion(): string
143  {
144  return $this->iliasVersion;
145  }
146 
147  public function isCurrentlyActive(): bool
148  {
149  return $this->currentlyActive;
150  }
151 
152  public function getId(): ?int
153  {
154  return $this->id;
155  }
156 
157  public function getBackgroundImagePath(): ?string
158  {
160  }
161 
162  public function getThumbnailImagePath(): string
163  {
165  }
166 }
__construct(int $patternCertificateId, int $objId, string $objType, int $userId, string $userName, int $acquiredTimestamp, string $certificateContent, string $templateValues, ?int $validUntil, int $version, string $iliasVersion, bool $currentlyActive, ?string $backgroundImagePath=null, ?string $thumbnailImagePath=null, ?int $id=null)