3 namespace Friendica\Object\Notification;
5 class Notification implements \JsonSerializable
7 const SYSTEM = 'system';
8 const PERSONAL = 'personal';
9 const NETWORK = 'network';
10 const INTRO = 'intro';
28 private $seen = false;
33 public function getLabel()
41 public function getLink()
49 public function getImage()
57 public function getUrl()
65 public function getText()
73 public function getWhen()
81 public function getAgo()
89 public function isSeen()
94 public function __construct(string $label = '', string $link = '', string $image = '',
95 string $url = '', string $text = '',
96 string $when = '', string $ago = '', bool $seen = false)
98 $this->label = $label;
100 $this->image = $image;
111 public function jsonSerialize()
113 return get_object_vars($this);
119 public function toArray()
121 return get_object_vars($this);