ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
UserCertificateDto.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 {
28  private string $downloadLink = '';
29 
33  public function __construct(
34  private readonly int $certificateId,
35  private readonly string $objectTitle,
36  private readonly int $objectId,
37  private readonly int $issuedOnTimestamp,
38  private readonly int $userId,
39  private readonly string $userFirstName,
40  private readonly string $userLastName,
41  private readonly string $userLogin,
42  private readonly string $userEmail,
43  private readonly string $userSecondEmail,
44  private array $objectRefIds = [],
45  ?string $downloadLink = null
46  ) {
47  $this->downloadLink = (string) $downloadLink;
48  }
49 
50  public function getObjectTitle(): string
51  {
52  return $this->objectTitle;
53  }
54 
55  public function getObjectId(): int
56  {
57  return $this->objectId;
58  }
59 
60  public function getIssuedOnTimestamp(): int
61  {
62  return $this->issuedOnTimestamp;
63  }
64 
65  public function getUserId(): int
66  {
67  return $this->userId;
68  }
69 
70  public function getDownloadLink(): string
71  {
72  return $this->downloadLink;
73  }
74 
75  public function getCertificateId(): int
76  {
77  return $this->certificateId;
78  }
79 
83  public function getObjectRefIds(): array
84  {
85  return $this->objectRefIds;
86  }
87 
88  public function getUserFirstName(): string
89  {
90  return $this->userFirstName;
91  }
92 
93  public function getUserLastName(): string
94  {
95  return $this->userLastName;
96  }
97 
98  public function getUserLogin(): string
99  {
100  return $this->userLogin;
101  }
102 
103  public function getUserEmail(): string
104  {
105  return $this->userEmail;
106  }
107 
108  public function addRefId(int $refId): void
109  {
110  $this->objectRefIds[] = $refId;
111  }
112 
113  public function getUserSecondEmail(): string
114  {
115  return $this->userSecondEmail;
116  }
117 }
$refId
Definition: xapitoken.php:58
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(private readonly int $certificateId, private readonly string $objectTitle, private readonly int $objectId, private readonly int $issuedOnTimestamp, private readonly int $userId, private readonly string $userFirstName, private readonly string $userLastName, private readonly string $userLogin, private readonly string $userEmail, private readonly string $userSecondEmail, private array $objectRefIds=[], ?string $downloadLink=null)