ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilTermsOfServiceAcceptanceEntity.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
11 protected $id = 0;
12
14 protected $user_id = 0;
15
17 protected $text = '';
18
20 protected $timestamp = 0;
21
23 protected $hash = '';
24
26 protected $title = '';
27
29 protected $document_id = 0;
30
32 protected $criteria = '';
33
37 public function getHash() : string
38 {
39 return $this->hash;
40 }
41
46 public function withHash(string $hash) : self
47 {
48 $clone = clone $this;
49
50 $clone->hash = $hash;
51
52 return $clone;
53 }
54
58 public function getText() : string
59 {
60 return $this->text;
61 }
62
67 public function withText(string $text) : self
68 {
69 $clone = clone $this;
70
71 $clone->text = $text;
72
73 return $clone;
74 }
75
79 public function getTimestamp() : int
80 {
81 return $this->timestamp;
82 }
83
88 public function withTimestamp(int $timestamp) : self
89 {
90 $clone = clone $this;
91
92 $clone->timestamp = $timestamp;
93
94 return $clone;
95 }
96
100 public function getUserId() : int
101 {
102 return $this->user_id;
103 }
104
109 public function withUserId(int $user_id) : self
110 {
111 $clone = clone $this;
112
113 $clone->user_id = $user_id;
114
115 return $clone;
116 }
117
121 public function getId() : int
122 {
123 return $this->id;
124 }
125
130 public function withId(int $id) : self
131 {
132 $clone = clone $this;
133
134 $clone->id = $id;
135
136 return $clone;
137 }
138
142 public function getTitle() : string
143 {
144 return $this->title;
145 }
146
151 public function withTitle(string $title) : self
152 {
153 $clone = clone $this;
154
155 $clone->title = $title;
156
157 return $clone;
158 }
159
163 public function getDocumentId() : int
164 {
165 return $this->document_id;
166 }
167
172 public function withDocumentId(int $document_id) : self
173 {
174 $clone = clone $this;
175
176 $clone->document_id = $document_id;
177
178 return $clone;
179 }
180
184 public function getSerializedCriteria() : string
185 {
186 return $this->criteria;
187 }
188
193 public function withSerializedCriteria(string $criteria) : self
194 {
195 $clone = clone $this;
196
197 $clone->criteria = $criteria;
198
199 return $clone;
200 }
201}
An exception for terminatinating execution or to throw for unit testing.
Class ilTermsOfServiceAcceptanceEntity.