3 namespace Friendica\Object\Notification;
6 * A view-only object for printing item notifications to the frontend
8 class Notification implements \JsonSerializable
10 const SYSTEM = 'system';
11 const PERSONAL = 'personal';
12 const NETWORK = 'network';
13 const INTRO = 'intro';
31 private $seen = false;
36 public function getLabel()
44 public function getLink()
52 public function getImage()
60 public function getUrl()
68 public function getText()
76 public function getWhen()
84 public function getAgo()
92 public function isSeen()
97 public function __construct(string $label = '', string $link = '', string $image = '',
98 string $url = '', string $text = '',
99 string $when = '', string $ago = '', bool $seen = false)
101 $this->label = $label;
103 $this->image = $image;
114 public function jsonSerialize()
116 return get_object_vars($this);
122 public function toArray()
124 return get_object_vars($this);