ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
class.ilUserCertificate.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27{
28 private readonly int $validUntil;
29 private readonly ?string $backgroundImageIdentification;
30 private readonly ?string $tile_image_identification;
31
32 public function __construct(
33 private readonly int $patternCertificateId,
34 private readonly int $objId,
35 private readonly string $objType,
36 private readonly int $userId,
37 private readonly string $userName,
38 private readonly int $acquiredTimestamp,
39 private readonly string $certificateContent,
40 private readonly string $templateValues,
41 ?int $validUntil,
42 private int $version,
43 private readonly string $iliasVersion,
44 private readonly bool $currentlyActive,
45 private readonly CertificateId $certificate_id,
46 ?string $backgroundImageIdentification = null,
47 ?string $tile_image_identification = null,
48 private ?int $id = null
49 ) {
50 $this->validUntil = (int) $validUntil;
51 $this->backgroundImageIdentification = (string) $backgroundImageIdentification;
52 $this->tile_image_identification = (string) $tile_image_identification;
53 }
54
55 public function withId(int $id): self
56 {
57 $clone = clone $this;
58 $clone->id = $id;
59
60 return $clone;
61 }
62
63 public function withVersion(int $version): self
64 {
65 $clone = clone $this;
66 $clone->version = $version;
67
68 return $clone;
69 }
70
71 public function getPatternCertificateId(): int
72 {
73 return $this->patternCertificateId;
74 }
75
76 public function getObjId(): int
77 {
78 return $this->objId;
79 }
80
81 public function getObjType(): string
82 {
83 return $this->objType;
84 }
85
86 public function getUserId(): int
87 {
88 return $this->userId;
89 }
90
91 public function getUserName(): string
92 {
93 return $this->userName;
94 }
95
96 public function getAcquiredTimestamp(): int
97 {
98 return $this->acquiredTimestamp;
99 }
100
101 public function getCertificateContent(): string
102 {
103 return $this->certificateContent;
104 }
105
106 public function getTemplateValues(): string
107 {
108 return $this->templateValues;
109 }
110
111 public function getValidUntil(): int
112 {
113 return $this->validUntil;
114 }
115
116 public function getVersion(): int
117 {
118 return $this->version;
119 }
120
121 public function getIliasVersion(): string
122 {
123 return $this->iliasVersion;
124 }
125
126 public function isCurrentlyActive(): bool
127 {
128 return $this->currentlyActive;
129 }
130
131 public function getId(): ?int
132 {
133 return $this->id;
134 }
135
136 public function getBackgroundImageIdentification(): string
137 {
139 }
140
141 public function getTileImageIdentification(): string
142 {
144 }
145
147 {
148 return $this->certificate_id;
149 }
150}
$version
Definition: plugin.php:24
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(private readonly int $patternCertificateId, private readonly int $objId, private readonly string $objType, private readonly int $userId, private readonly string $userName, private readonly int $acquiredTimestamp, private readonly string $certificateContent, private readonly string $templateValues, ?int $validUntil, private int $version, private readonly string $iliasVersion, private readonly bool $currentlyActive, private readonly CertificateId $certificate_id, ?string $backgroundImageIdentification=null, ?string $tile_image_identification=null, private ?int $id=null)
readonly string $backgroundImageIdentification
readonly string $tile_image_identification
$objId
Definition: xapitoken.php:55