forked from fa/breadcrumb-the-shire
chore: snapshot notifications hardening and css/docs alignment
This commit is contained in:
@@ -10,15 +10,15 @@ interface NotificationRepositoryInterface
|
||||
/**
|
||||
* @return list<array<string, mixed>>
|
||||
*/
|
||||
public function listByUser(int $userId, int $limit, int $offset): array;
|
||||
public function listByUser(int $userId, ?int $tenantId, int $limit, int $offset): array;
|
||||
|
||||
public function countUnreadByUser(int $userId): int;
|
||||
public function countUnreadByUser(int $userId, ?int $tenantId): int;
|
||||
|
||||
public function markRead(int $id, int $userId): bool;
|
||||
public function markRead(int $id, int $userId, ?int $tenantId): bool;
|
||||
|
||||
public function markAllReadByUser(int $userId): int;
|
||||
public function markAllReadByUser(int $userId, ?int $tenantId): int;
|
||||
|
||||
public function delete(int $id, int $userId): bool;
|
||||
public function delete(int $id, int $userId, ?int $tenantId): bool;
|
||||
|
||||
public function deleteAllByUser(int $userId): int;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user