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