3 namespace Friendica\Object\Notification;
5 class Introduction implements \JsonSerializable
12 private $intro_id = 0;
16 private $madeByUrl = '';
18 private $madeByZrl = '';
20 private $madeByAddr = '';
22 private $contactId = 0;
32 private $hidden = false;
34 private $postNewFriend = 0;
36 private $knowYou = '';
40 private $request = '';
61 public function getLabel()
69 public function getType()
77 public function getIntroId()
79 return $this->intro_id;
85 public function getMadeBy()
93 public function getMadeByUrl()
95 return $this->madeByUrl;
101 public function getMadeByZrl()
103 return $this->madeByZrl;
109 public function getMadeByAddr()
111 return $this->madeByAddr;
117 public function getContactId()
119 return $this->contactId;
125 public function getPhoto()
133 public function getName()
141 public function getUrl()
149 public function getZrl()
157 public function isHidden()
159 return $this->hidden;
165 public function getPostNewFriend()
167 return $this->postNewFriend;
173 public function getKnowYou()
175 return $this->knowYou;
181 public function getNote()
189 public function getRequest()
191 return $this->request;
197 public function getDfrnId()
199 return $this->dfrnId;
205 public function getAddr()
213 public function getNetwork()
215 return $this->network;
221 public function getUid()
229 public function getKeywords()
231 return $this->keywords;
237 public function getGender()
239 return $this->gender;
245 public function getLocation()
247 return $this->location;
253 public function getAbout()
258 public function __construct(array $data = [])
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'] ?? '';
290 public function jsonSerialize()
292 return $this->toArray();
298 public function toArray()
300 return get_object_vars($this);