aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Notifications/NotificationInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Notifications/NotificationInterface.php')
-rw-r--r--src/Wallabag/CoreBundle/Notifications/NotificationInterface.php66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Notifications/NotificationInterface.php b/src/Wallabag/CoreBundle/Notifications/NotificationInterface.php
new file mode 100644
index 00000000..d83e2361
--- /dev/null
+++ b/src/Wallabag/CoreBundle/Notifications/NotificationInterface.php
@@ -0,0 +1,66 @@
1<?php
2
3namespace Wallabag\CoreBundle\Notifications;
4
5use Psr\Log\LoggerAwareInterface;
6
7interface NotificationInterface extends LoggerAwareInterface {
8
9 /**
10 * Title of the notification
11 *
12 * @return string
13 */
14 public function getTitle();
15
16 /**
17 * @param string $title
18 * @return NotificationInterface
19 */
20 public function setTitle($title);
21
22 /**
23 * Type of the notification.
24 *
25 * @return string
26 */
27 public function getType();
28
29 /**
30 * @param int $type
31 * @return NotificationInterface
32 */
33 public function setType($type);
34
35 /**
36 * If the notification has been viewed / dismissed or not
37 *
38 * @return boolean
39 */
40 public function isRead();
41
42 /**
43 * @param boolean $read
44 * @return NotificationInterface
45 */
46 public function setRead($read);
47
48 /**
49 * When the notification was sent
50 *
51 * @return \DateTime
52 */
53 public function getTimestamp();
54
55 /**
56 * @param \DateTime $timestamp
57 * @return NotificationInterface
58 */
59 public function setTimestamp(\DateTime $timestamp);
60
61 /**
62 * @param ActionInterface $action
63 * @return NotificationInterface
64 */
65 public function addAction(ActionInterface $action);
66}