| 1 | <?php |
||
| 21 | class UnreadMessagesProviderDoctrine implements UnreadMessagesProviderInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * A thread repository instance. |
||
| 25 | * |
||
| 26 | * @var ThreadRepositoryInterface |
||
| 27 | */ |
||
| 28 | private $threadRepository; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Constructor. |
||
| 32 | * |
||
| 33 | * @param ThreadRepositoryInterface $threadRepository |
||
| 34 | */ |
||
| 35 | public function __construct(ThreadRepositoryInterface $threadRepository) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function getUnreadMessageCountForParticipant(ParticipantInterface $participant) |
||
| 47 | } |
||
| 48 |