Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
NotificationMessage
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4/**
5 * SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
6 * SPDX-License-Identifier: AGPL-3.0-or-later
7 */
8
9namespace OCA\Libresign\Service\Notification;
10
11use OCA\Libresign\Db\File;
12use OCA\Libresign\Db\SignRequest;
13
14/** One intended delivery to one destination on one channel for a committed event. */
15final readonly class NotificationMessage {
16    public function __construct(
17        public string $sourceEventId,
18        public string $eventType,
19        public string $channel,
20        public File $file,
21        public SignRequest $signRequest,
22        public string $recipient,
23        public NotificationPayload $payload,
24        public ?string $historyMethod = null,
25    ) {
26    }
27}