3 namespace Wallabag\CoreBundle\Notifications
;
5 use Psr\Log\LoggerAwareInterface
;
7 interface NotificationInterface
extends LoggerAwareInterface
{
10 * Title of the notification
14 public function getTitle();
17 * @param string $title
18 * @return NotificationInterface
20 public function setTitle($title);
23 * Type of the notification.
27 public function getType();
31 * @return NotificationInterface
33 public function setType($type);
36 * If the notification has been viewed / dismissed or not
40 public function isRead();
43 * @param boolean $read
44 * @return NotificationInterface
46 public function setRead($read);
49 * When the notification was sent
53 public function getTimestamp();
56 * @param \DateTime $timestamp
57 * @return NotificationInterface
59 public function setTimestamp(\DateTime
$timestamp);
62 * @param ActionInterface $action
63 * @return NotificationInterface
65 public function addAction(ActionInterface
$action);