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 |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | * @throws ORMException |
||
54 | * @throws OptimisticLockException |
||
55 | */ |
||
56 | 3 | public function persist(Notification $notification): void |
|
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function notificationOfId(NotificationId $notificationId): ?Notification |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | 2 | public function hasNotificationOfDeduplicationKey(DeduplicationKey $deduplicationKey): bool |
|
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | 2 | public function freshNotifications(): array |
|
91 | } |
||
92 |