Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
NotificationDelivery
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
6 / 6
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\Db;
10
11use OCP\AppFramework\Db\Entity;
12use OCP\DB\Types;
13
14/**
15 * @method void setCorrelationId(string $value)
16 * @method string getCorrelationId()
17 * @method void setEventKey(string $value)
18 * @method string getEventKey()
19 * @method void setChannel(string $value)
20 * @method string getChannel()
21 * @method void setEventType(string $value)
22 * @method string getEventType()
23 * @method void setFileId(int $value)
24 * @method int getFileId()
25 * @method void setSignRequestId(?int $value)
26 * @method ?int getSignRequestId()
27 * @method void setOwnerId(string $value)
28 * @method string getOwnerId()
29 * @method void setRecipientEnc(string $value)
30 * @method string getRecipientEnc()
31 * @method void setMessageEnc(?string $value)
32 * @method ?string getMessageEnc()
33 * @method void setState(string $value)
34 * @method string getState()
35 * @method void setAttemptCount(int $value)
36 * @method int getAttemptCount()
37 * @method void setNextAttemptAt(?\DateTime $value)
38 * @method ?\DateTime getNextAttemptAt()
39 * @method void setCreatedAt(\DateTime $value)
40 * @method \DateTime getCreatedAt()
41 * @method void setUpdatedAt(\DateTime $value)
42 * @method \DateTime getUpdatedAt()
43 */
44final class NotificationDelivery extends Entity {
45    protected string $eventKey = '';
46    protected string $correlationId = '';
47    protected string $eventType = '';
48    protected string $channel = '';
49    protected int $fileId = 0;
50    protected ?int $signRequestId = null;
51    protected string $ownerId = '';
52    protected string $recipientEnc = '';
53    protected ?string $messageEnc = null;
54    protected string $state = '';
55    protected int $attemptCount = 0;
56    protected ?\DateTime $nextAttemptAt = null;
57    protected ?\DateTime $createdAt = null;
58    protected ?\DateTime $updatedAt = null;
59
60    public function __construct() {
61        $this->addType('fileId', Types::INTEGER);
62        $this->addType('signRequestId', Types::INTEGER);
63        $this->addType('attemptCount', Types::INTEGER);
64        $this->addType('nextAttemptAt', Types::DATETIME);
65        $this->addType('createdAt', Types::DATETIME);
66        $this->addType('updatedAt', Types::DATETIME);
67    }
68}