]> git.mxchange.org Git - friendica.git/blob - src/Object/Notification/Introduction.php
ReWork Notification Model/Module/Object/Repository/Factory
[friendica.git] / src / Object / Notification / Introduction.php
1 <?php
2
3 namespace Friendica\Object\Notification;
4
5 class Introduction implements \JsonSerializable
6 {
7         /** @var string */
8         private $label = '';
9         /** @var string */
10         private $type = '';
11         /** @var integer */
12         private $intro_id = 0;
13         /** @var string */
14         private $madeBy = '';
15         /** @var string */
16         private $madeByUrl = '';
17         /** @var string */
18         private $madeByZrl = '';
19         /** @var string */
20         private $madeByAddr = '';
21         /** @var integer */
22         private $contactId = 0;
23         /** @var string */
24         private $photo = '';
25         /** @var string */
26         private $name = '';
27         /** @var string */
28         private $url = '';
29         /** @var string */
30         private $zrl = '';
31         /** @var boolean */
32         private $hidden = false;
33         /** @var integer */
34         private $postNewFriend = 0;
35         /** @var string */
36         private $knowYou = '';
37         /** @var string */
38         private $note = '';
39         /** @var string */
40         private $request = '';
41         /** @var string */
42         private $dfrnId;
43         /** @var string */
44         private $addr;
45         /** @var string */
46         private $network;
47         /** @var int */
48         private $uid;
49         /** @var string */
50         private $keywords;
51         /** @var string */
52         private $gender;
53         /** @var string */
54         private $location;
55         /** @var string */
56         private $about;
57
58         /**
59          * @return string
60          */
61         public function getLabel()
62         {
63                 return $this->label;
64         }
65
66         /**
67          * @return string
68          */
69         public function getType()
70         {
71                 return $this->type;
72         }
73
74         /**
75          * @return int
76          */
77         public function getIntroId()
78         {
79                 return $this->intro_id;
80         }
81
82         /**
83          * @return string
84          */
85         public function getMadeBy()
86         {
87                 return $this->madeBy;
88         }
89
90         /**
91          * @return string
92          */
93         public function getMadeByUrl()
94         {
95                 return $this->madeByUrl;
96         }
97
98         /**
99          * @return string
100          */
101         public function getMadeByZrl()
102         {
103                 return $this->madeByZrl;
104         }
105
106         /**
107          * @return string
108          */
109         public function getMadeByAddr()
110         {
111                 return $this->madeByAddr;
112         }
113
114         /**
115          * @return int
116          */
117         public function getContactId()
118         {
119                 return $this->contactId;
120         }
121
122         /**
123          * @return string
124          */
125         public function getPhoto()
126         {
127                 return $this->photo;
128         }
129
130         /**
131          * @return string
132          */
133         public function getName()
134         {
135                 return $this->name;
136         }
137
138         /**
139          * @return string
140          */
141         public function getUrl()
142         {
143                 return $this->url;
144         }
145
146         /**
147          * @return string
148          */
149         public function getZrl()
150         {
151                 return $this->zrl;
152         }
153
154         /**
155          * @return bool
156          */
157         public function isHidden()
158         {
159                 return $this->hidden;
160         }
161
162         /**
163          * @return int
164          */
165         public function getPostNewFriend()
166         {
167                 return $this->postNewFriend;
168         }
169
170         /**
171          * @return string
172          */
173         public function getKnowYou()
174         {
175                 return $this->knowYou;
176         }
177
178         /**
179          * @return string
180          */
181         public function getNote()
182         {
183                 return $this->note;
184         }
185
186         /**
187          * @return string
188          */
189         public function getRequest()
190         {
191                 return $this->request;
192         }
193
194         /**
195          * @return string
196          */
197         public function getDfrnId()
198         {
199                 return $this->dfrnId;
200         }
201
202         /**
203          * @return string
204          */
205         public function getAddr()
206         {
207                 return $this->addr;
208         }
209
210         /**
211          * @return string
212          */
213         public function getNetwork()
214         {
215                 return $this->network;
216         }
217
218         /**
219          * @return int
220          */
221         public function getUid()
222         {
223                 return $this->uid;
224         }
225
226         /**
227          * @return string
228          */
229         public function getKeywords()
230         {
231                 return $this->keywords;
232         }
233
234         /**
235          * @return string
236          */
237         public function getGender()
238         {
239                 return $this->gender;
240         }
241
242         /**
243          * @return string
244          */
245         public function getLocation()
246         {
247                 return $this->location;
248         }
249
250         /**
251          * @return string
252          */
253         public function getAbout()
254         {
255                 return $this->about;
256         }
257
258         public function __construct(array $data = [])
259         {
260                 $this->label         = $data['label'] ?? '';
261                 $this->type          = $data['str_$type'] ?? '';
262                 $this->intro_id      = $data['$intro_id'] ?? '';
263                 $this->madeBy        = $data['$madeBy'] ?? '';
264                 $this->madeByUrl     = $data['$madeByUrl'] ?? '';
265                 $this->madeByZrl     = $data['$madeByZrl'] ?? '';
266                 $this->madeByAddr    = $data['$madeByAddr'] ?? '';
267                 $this->contactId     = $data['$contactId'] ?? '';
268                 $this->photo         = $data['$photo'] ?? '';
269                 $this->name          = $data['$name'] ?? '';
270                 $this->url           = $data['$url'] ?? '';
271                 $this->zrl           = $data['$zrl'] ?? '';
272                 $this->hidden        = $data['$hidden'] ?? '';
273                 $this->postNewFriend = $data['$postNewFriend'] ?? '';
274                 $this->knowYou       = $data['$knowYou'] ?? '';
275                 $this->note          = $data['$note'] ?? '';
276                 $this->request       = $data['$request'] ?? '';
277                 $this->dfrnId        = $data['dfrn_id'] ?? '';
278                 $this->addr          = $data['addr'] ?? '';
279                 $this->network       = $data['network'] ?? '';
280                 $this->uid           = $data['uid'] ?? '';
281                 $this->keywords      = $data['keywords'] ?? '';
282                 $this->gender        = $data['gender'] ?? '';
283                 $this->location      = $data['location'] ?? '';
284                 $this->about         = $data['about'] ?? '';
285         }
286
287         /**
288          * @inheritDoc
289          */
290         public function jsonSerialize()
291         {
292                 return $this->toArray();
293         }
294
295         /**
296          * @return array
297          */
298         public function toArray()
299         {
300                 return get_object_vars($this);
301         }
302 }