Files
archived-FOSMessageBundle/Reader/ReaderInterface.php
2016-09-04 23:04:47 +02:00

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);
}