ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
class.ilCertificateTemplate.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 public function __construct(
27 private readonly int $obj_id,
28 private readonly string $obj_type,
29 private readonly string $certificateContent,
30 private readonly string $certificateHash,
31 private readonly string $templateValues,
32 private readonly int $version,
33 private readonly string $iliasVersion,
34 private readonly int $createdTimestamp,
35 private readonly bool $currentlyActive,
36 private readonly string $backgroundIdentification = '',
37 private readonly string $tile_image_identification = '',
38 private readonly ?int $id = null,
39 private readonly bool $deleted = false
40 ) {
41 if ($this->obj_type === '' || is_numeric($this->obj_type)) {
43 'Certificate template object type must be a non-numeric string '
44 . ', got ' . var_export($this->obj_type, true)
45 );
46 }
47 }
48
49 public function getObjId(): int
50 {
51 return $this->obj_id;
52 }
53
54 public function getCertificateContent(): string
55 {
56 return $this->certificateContent;
57 }
58
59 public function getCertificateHash(): string
60 {
61 return $this->certificateHash;
62 }
63
64 public function getTemplateValues(): string
65 {
66 return $this->templateValues;
67 }
68
69 public function getVersion(): int
70 {
71 return $this->version;
72 }
73
74 public function getIliasVersion(): string
75 {
76 return $this->iliasVersion;
77 }
78
79 public function getCreatedTimestamp(): int
80 {
81 return $this->createdTimestamp;
82 }
83
84 public function isCurrentlyActive(): bool
85 {
86 return $this->currentlyActive;
87 }
88
89 public function getId(): ?int
90 {
91 return $this->id;
92 }
93
94 public function getBackgroundImageIdentification(): string
95 {
96 return $this->backgroundIdentification;
97 }
98
99 public function getObjType(): string
100 {
101 return $this->obj_type;
102 }
103
104 public function isDeleted(): bool
105 {
106 return $this->deleted;
107 }
108
109 public function getTileImageIdentification(): string
110 {
111 return $this->tile_image_identification;
112 }
113}
$version
Definition: plugin.php:24
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(private readonly int $obj_id, private readonly string $obj_type, private readonly string $certificateContent, private readonly string $certificateHash, private readonly string $templateValues, private readonly int $version, private readonly string $iliasVersion, private readonly int $createdTimestamp, private readonly bool $currentlyActive, private readonly string $backgroundIdentification='', private readonly string $tile_image_identification='', private readonly ?int $id=null, private readonly bool $deleted=false)