1 | <?php |
||
14 | class NotificationRepository extends EntityRepository |
||
15 | { |
||
16 | /** |
||
17 | * @param Notification $notification |
||
18 | */ |
||
19 | public function setNotificationAsDelivered(Notification $notification) |
||
25 | |||
26 | /** |
||
27 | * @param QueryBuilder $builder |
||
28 | * @param IdentifierRecipientInterface $recipient |
||
29 | * |
||
30 | * @return QueryBuilder |
||
31 | */ |
||
32 | public function addRecipientConditions(QueryBuilder $builder, IdentifierRecipientInterface $recipient) |
||
48 | |||
49 | /** |
||
50 | * @param IdentifierRecipientInterface $recipient |
||
51 | * |
||
52 | * @return int |
||
53 | */ |
||
54 | public function countUndeliveredRecipientNotification(IdentifierRecipientInterface $recipient) |
||
65 | |||
66 | /** |
||
67 | * @param IdentifierRecipientInterface $recipient |
||
68 | * |
||
69 | * @return Notification[] |
||
70 | */ |
||
71 | public function findUndeliveredRecipientNotification(IdentifierRecipientInterface $recipient) |
||
81 | |||
82 | /** |
||
83 | * @param IdentifierRecipientInterface $recipient |
||
84 | * |
||
85 | * @return Notification[] |
||
86 | */ |
||
87 | public function findAllForRecipient(IdentifierRecipientInterface $recipient) |
||
95 | } |
||
96 |