ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
UserCertificateDto.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 
10 {
12  private $objectTitle = '';
13 
15  private $objectRefIds = [];
16 
18  private $objectId = 0;
19 
21  private $issuedOnTimestamp = 0;
22 
24  private $userId = 0;
25 
27  private $downloadLink = '';
28 
30  private $certificateId = 0;
31 
33  private $userFirstName = '';
34 
36  private $userLastName = '';
37 
39  private $userLogin = '';
40 
42  private $userEmail = '';
43 
45  private $userSecondEmail = '';
46 
61  public function __construct(
62  int $certificateId,
63  string $objectTitle,
64  int $objectId,
66  int $userId,
67  string $userFirstName,
68  string $userLastName,
69  string $userLogin,
70  string $userEmail,
71  string $userSecondEmail,
72  array $objectRefId = array(),
73  string $downloadLink = null
74  ) {
75  $this->certificateId = $certificateId;
76  $this->objectTitle = $objectTitle;
77  $this->objectRefIds = $objectRefId;
78  $this->objectId = $objectId;
79  $this->issuedOnTimestamp = $issuedOnTimestamp;
80  $this->userId = $userId;
81  $this->downloadLink = $downloadLink;
82 
83  $this->userFirstName = $userFirstName;
84  $this->userLastName = $userLastName;
85  $this->userLogin = $userLogin;
86  $this->userEmail = $userEmail;
87  $this->userSecondEmail = $userSecondEmail;
88  }
89 
93  public function getObjectTitle() : string
94  {
95  return $this->objectTitle;
96  }
97 
101  public function getObjectId() : int
102  {
103  return $this->objectId;
104  }
105 
109  public function getIssuedOnTimestamp() : int
110  {
112  }
113 
117  public function getUserId() : int
118  {
119  return $this->userId;
120  }
121 
125  public function getDownloadLink() : string
126  {
127  return $this->downloadLink;
128  }
129 
133  public function getCertificateId() : int
134  {
135  return $this->certificateId;
136  }
137 
141  public function getObjectRefIds() : array
142  {
143  return $this->objectRefIds;
144  }
145 
149  public function getUserFirstName() : string
150  {
151  return $this->userFirstName;
152  }
153 
157  public function getUserLastName() : string
158  {
159  return $this->userLastName;
160  }
161 
165  public function getUserLogin() : string
166  {
167  return $this->userLogin;
168  }
169 
173  public function getUserEmail() : string
174  {
175  return $this->userEmail;
176  }
177 
181  public function addRefId(int $refId) : void
182  {
183  $this->objectRefIds[] = $refId;
184  }
185 
189  public function getUserSecondEmail() : string
190  {
191  return $this->userSecondEmail;
192  }
193 }
$refId
Definition: xapitoken.php:40
__construct(int $certificateId, string $objectTitle, int $objectId, int $issuedOnTimestamp, int $userId, string $userFirstName, string $userLastName, string $userLogin, string $userEmail, string $userSecondEmail, array $objectRefId=array(), string $downloadLink=null)