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