ILIAS  release_8 Revision v8.24
class.ilTermsOfServiceAcceptanceEntity.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
27 protected int $id = 0;
28 protected int $user_id = 0;
29 protected string $text = '';
30 protected int $timestamp = 0;
31 protected string $hash = '';
32 protected string $title = '';
33 protected int $document_id = 0;
34 protected string $criteria = '';
35
36 public function getHash(): string
37 {
38 return $this->hash;
39 }
40
41 public function withHash(string $hash): self
42 {
43 $clone = clone $this;
44
45 $clone->hash = $hash;
46
47 return $clone;
48 }
49
50 public function getText(): string
51 {
52 return $this->text;
53 }
54
55 public function withText(string $text): self
56 {
57 $clone = clone $this;
58
59 $clone->text = $text;
60
61 return $clone;
62 }
63
64 public function getTimestamp(): int
65 {
66 return $this->timestamp;
67 }
68
69 public function withTimestamp(int $timestamp): self
70 {
71 $clone = clone $this;
72
73 $clone->timestamp = $timestamp;
74
75 return $clone;
76 }
77
78 public function getUserId(): int
79 {
80 return $this->user_id;
81 }
82
83 public function withUserId(int $user_id): self
84 {
85 $clone = clone $this;
86
87 $clone->user_id = $user_id;
88
89 return $clone;
90 }
91
92 public function getId(): int
93 {
94 return $this->id;
95 }
96
97 public function withId(int $id): self
98 {
99 $clone = clone $this;
100
101 $clone->id = $id;
102
103 return $clone;
104 }
105
106 public function getTitle(): string
107 {
108 return $this->title;
109 }
110
111 public function withTitle(string $title): self
112 {
113 $clone = clone $this;
114
115 $clone->title = $title;
116
117 return $clone;
118 }
119
120 public function getDocumentId(): int
121 {
122 return $this->document_id;
123 }
124
125 public function withDocumentId(int $document_id): self
126 {
127 $clone = clone $this;
128
129 $clone->document_id = $document_id;
130
131 return $clone;
132 }
133
134 public function getSerializedCriteria(): string
135 {
136 return $this->criteria;
137 }
138
139 public function withSerializedCriteria(string $criteria): self
140 {
141 $clone = clone $this;
142
143 $clone->criteria = $criteria;
144
145 return $clone;
146 }
147}