mirror of
https://github.com/FriendsOfSymfony/FOSMessageBundle.git
synced 2026-03-24 06:52:15 +01:00
24 lines
540 B
PHP
24 lines
540 B
PHP
<?php
|
|
|
|
namespace FOS\MessageBundle\Reader;
|
|
|
|
use FOS\MessageBundle\Model\ReadableInterface;
|
|
|
|
/**
|
|
* Marks messages and threads as read or unread.
|
|
*
|
|
* @author Thibault Duplessis <thibault.duplessis@gmail.com>
|
|
*/
|
|
interface ReaderInterface
|
|
{
|
|
/**
|
|
* Marks the readable as read by the current authenticated user.
|
|
*/
|
|
public function markAsRead(ReadableInterface $readable);
|
|
|
|
/**
|
|
* Marks the readable as unread by the current authenticated user.
|
|
*/
|
|
public function markAsUnread(ReadableInterface $readable);
|
|
}
|