-
Notifications
You must be signed in to change notification settings - Fork 1
/
EntityClassLib.php
223 lines (170 loc) · 4.66 KB
/
EntityClassLib.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<?php
class User {
private $userId;
private $name;
private $phone;
private $messages;
public function __construct($userId, $name, $phone) {
$this->userId = $userId;
$this->name = $name;
$this->phone = $phone;
$this->messages = array();
}
public function getUserId() {
return $this->userId;
}
public function getName() {
return $this->name;
}
public function getPhone() {
return $this->phone;
}
}
class Accessibility {
private $code;
private $description;
public function __construct($code, $description) {
$this->code = $code;
$this->description = $description;
}
public function getCode() {
return $this->code;
}
public function getDescription() {
return $this->description;
}
}
class Album {
private $albumId;
private $title;
private $description;
private $userId;
private $accessibilityCode;
public function __construct($albumId, $title, $description, $userId, $accessibilityCode) {
$this->albumId = $albumId;
$this->title = $title;
$this->description = $description;
$this->userId = $userId;
$this->accessibilityCode = $accessibilityCode;
}
public function getAlbumId() {
return $this->albumId;
}
public function getTitle() {
return $this->title;
}
public function getDescription() {
return $this->description;
}
public function getUserId() {
return $this->userId;
}
public function getAccessibilityCode() {
return $this->accessibilityCode;
}
}
class Picture {
private $pictureId;
private $albumId;
private $fileName;
private $title;
private $description;
public function __construct($pictureId, $albumId, $fileName, $title, $description) {
$this->pictureId = $pictureId;
$this->albumId = $albumId;
$this->fileName = $fileName;
$this->title = $title;
$this->description = $description;
}
public function getPictureId() {
return $this->pictureId;
}
public function getAlbumId() {
return $this->albumId;
}
public function getFileName() {
return $this->fileName;
}
public function getTitle() {
return $this->title;
}
public function getDescription() {
return $this->description;
}
}
class Comment {
private $commentId;
private $commentText;
private $userId;
private $name;
public function __construct($commentId, $commentText, $userId, $name) {
$this->commentId = $commentId;
$this->commentText = $commentText;
$this->userId = $userId;
$this->name = $name;
}
public function getCommentId() {
return $this->commentId;
}
public function getCommentText() {
return $this->commentText;
}
public function getUserId() {
return $this->userId;
}
public function getUserName() {
return $this->name;
}
}
class Friend {
private $friendId;
private $friendName;
public function __construct($friendId, $friendName) {
$this->friendId = $friendId;
$this->friendName = $friendName;
}
public function getFriendId() {
return $this->friendId;
}
public function getFriendName() {
return $this->friendName;
}
}
class Friendship {
private $requesterId;
private $requesteeId;
private $requesterName;
private $status;
public function __construct($requesterId, $requesteeId, $requesterName, $status) {
$this->requesterId = $requesterId;
$this->requesteeId = $requesteeId;
$this->requesterName = $requesterName;
$this->status = $status;
}
public function getRequesterId() {
return $this->requesterId;
}
public function getRequesteeId() {
return $this->requesteeId;
}
public function getRequesterName() {
return $this->requesterName;
}
public function getStatus() {
return $this->status;
}
}
class FriendshipStatus {
private $code;
private $description;
public function __construct($code, $description) {
$this->code = $code;
$this->description = $description;
}
public function getCode() {
return $this->code;
}
public function getDescription() {
return $this->description;
}
}