ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables 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 $objectTitle = '';
30  private array $objectRefIds = [];
31  private int $objectId = 0;
32  private int $issuedOnTimestamp = 0;
33  private int $userId = 0;
34  private string $downloadLink = '';
35  private int $certificateId = 0;
36  private string $userFirstName = '';
37  private string $userLastName = '';
38  private string $userLogin = '';
39  private string $userEmail = '';
40  private string $userSecondEmail = '';
41 
42  public function __construct(
43  int $certificateId,
44  string $objectTitle,
45  int $objectId,
46  int $issuedOnTimestamp,
47  int $userId,
48  string $userFirstName,
49  string $userLastName,
50  string $userLogin,
51  string $userEmail,
52  string $userSecondEmail,
53  array $objectRefId = [],
54  ?string $downloadLink = null
55  ) {
56  $this->certificateId = $certificateId;
57  $this->objectTitle = $objectTitle;
58  $this->objectRefIds = $objectRefId;
59  $this->objectId = $objectId;
60  $this->issuedOnTimestamp = $issuedOnTimestamp;
61  $this->userId = $userId;
62  $this->downloadLink = (string) $downloadLink;
63  $this->userFirstName = $userFirstName;
64  $this->userLastName = $userLastName;
65  $this->userLogin = $userLogin;
66  $this->userEmail = $userEmail;
67  $this->userSecondEmail = $userSecondEmail;
68  }
69 
70  public function getObjectTitle(): string
71  {
72  return $this->objectTitle;
73  }
74 
75  public function getObjectId(): int
76  {
77  return $this->objectId;
78  }
79 
80  public function getIssuedOnTimestamp(): int
81  {
83  }
84 
85  public function getUserId(): int
86  {
87  return $this->userId;
88  }
89 
90  public function getDownloadLink(): string
91  {
92  return $this->downloadLink;
93  }
94 
95  public function getCertificateId(): int
96  {
97  return $this->certificateId;
98  }
99 
103  public function getObjectRefIds(): array
104  {
105  return $this->objectRefIds;
106  }
107 
108  public function getUserFirstName(): string
109  {
110  return $this->userFirstName;
111  }
112 
113  public function getUserLastName(): string
114  {
115  return $this->userLastName;
116  }
117 
118  public function getUserLogin(): string
119  {
120  return $this->userLogin;
121  }
122 
123  public function getUserEmail(): string
124  {
125  return $this->userEmail;
126  }
127 
128  public function addRefId(int $refId): void
129  {
130  $this->objectRefIds[] = $refId;
131  }
132 
133  public function getUserSecondEmail(): string
134  {
135  return $this->userSecondEmail;
136  }
137 }
$refId
Definition: xapitoken.php:58
__construct(int $certificateId, string $objectTitle, int $objectId, int $issuedOnTimestamp, int $userId, string $userFirstName, string $userLastName, string $userLogin, string $userEmail, string $userSecondEmail, array $objectRefId=[], ?string $downloadLink=null)