1 | <?php |
||
16 | class DoctrineNotificationRepository extends EntityRepository implements NotificationRepository |
||
17 | { |
||
18 | /** |
||
19 | * @var bool |
||
20 | */ |
||
21 | private $isPrecocious; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | * @param bool $isPrecocious |
||
26 | */ |
||
27 | 3 | public function __construct($em, ClassMetadata $class, bool $isPrecocious) |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 3 | public function add(Notification $notification, bool $precocious = false): void |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | * @throws ORMException |
||
48 | * @throws OptimisticLockException |
||
49 | */ |
||
50 | 3 | public function persist(Notification $notification): void |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function notificationOfId(NotificationId $notificationId): ?Notification |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 2 | public function hasNotificationOfDeduplicationKey(DeduplicationKey $deduplicationKey): bool |
|
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | 2 | public function freshNotifications(): array |
|
87 | } |
||
88 |