3 namespace Friendica\Object\Notification;
6 * A view-only object for printing introduction notifications to the frontend
8 class Introduction implements \JsonSerializable
15 private $intro_id = -1;
19 private $madeByUrl = '';
21 private $madeByZrl = '';
23 private $madeByAddr = '';
25 private $contactId = -1;
35 private $hidden = false;
37 private $postNewFriend = -1;
39 private $knowYou = false;
43 private $request = '';
49 private $network = '';
53 private $keywords = '';
57 private $location = '';
64 public function getLabel()
72 public function getType()
80 public function getIntroId()
82 return $this->intro_id;
88 public function getMadeBy()
96 public function getMadeByUrl()
98 return $this->madeByUrl;
104 public function getMadeByZrl()
106 return $this->madeByZrl;
112 public function getMadeByAddr()
114 return $this->madeByAddr;
120 public function getContactId()
122 return $this->contactId;
128 public function getPhoto()
136 public function getName()
144 public function getUrl()
152 public function getZrl()
160 public function isHidden()
162 return $this->hidden;
168 public function getPostNewFriend()
170 return $this->postNewFriend;
176 public function getKnowYou()
178 return $this->knowYou;
184 public function getNote()
192 public function getRequest()
194 return $this->request;
200 public function getDfrnId()
202 return $this->dfrnId;
208 public function getAddr()
216 public function getNetwork()
218 return $this->network;
224 public function getUid()
232 public function getKeywords()
234 return $this->keywords;
240 public function getGender()
242 return $this->gender;
248 public function getLocation()
250 return $this->location;
256 public function getAbout()
261 public function __construct(array $data = [])
263 $this->label = $data['label'] ?? '';
264 $this->type = $data['str_type'] ?? '';
265 $this->intro_id = $data['$intro_id'] ?? -1;
266 $this->madeBy = $data['madeBy'] ?? '';
267 $this->madeByUrl = $data['madeByUrl'] ?? '';
268 $this->madeByZrl = $data['madeByZrl'] ?? '';
269 $this->madeByAddr = $data['madeByAddr'] ?? '';
270 $this->contactId = $data['contactId'] ?? '';
271 $this->photo = $data['photo'] ?? '';
272 $this->name = $data['name'] ?? '';
273 $this->url = $data['url'] ?? '';
274 $this->zrl = $data['zrl'] ?? '';
275 $this->hidden = $data['hidden'] ?? false;
276 $this->postNewFriend = $data['postNewFriend'] ?? '';
277 $this->knowYou = $data['knowYou'] ?? false;
278 $this->note = $data['note'] ?? '';
279 $this->request = $data['request'] ?? '';
280 $this->dfrnId = $data['dfrn_id'] ?? -1;
281 $this->addr = $data['addr'] ?? '';
282 $this->network = $data['network'] ?? '';
283 $this->uid = $data['uid'] ?? -1;
284 $this->keywords = $data['keywords'] ?? '';
285 $this->gender = $data['gender'] ?? '';
286 $this->location = $data['location'] ?? '';
287 $this->about = $data['about'] ?? '';
293 public function jsonSerialize()
295 return $this->toArray();
301 public function toArray()
303 return get_object_vars($this);