Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| NotificationAttempt | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | /** |
| 5 | * SPDX-FileCopyrightText: 2026 LibreCode coop and contributors |
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 7 | */ |
| 8 | |
| 9 | namespace OCA\Libresign\Db; |
| 10 | |
| 11 | use OCP\AppFramework\Db\Entity; |
| 12 | use OCP\DB\Types; |
| 13 | |
| 14 | /** |
| 15 | * @method void setDeliveryId(int $value) |
| 16 | * @method int getDeliveryId() |
| 17 | * @method void setState(string $value) |
| 18 | * @method string getState() |
| 19 | * @method void setReasonCode(?string $value) |
| 20 | * @method ?string getReasonCode() |
| 21 | * @method void setStartedAt(\DateTime $value) |
| 22 | * @method \DateTime getStartedAt() |
| 23 | * @method void setFinishedAt(?\DateTime $value) |
| 24 | * @method ?\DateTime getFinishedAt() |
| 25 | */ |
| 26 | final class NotificationAttempt extends Entity { |
| 27 | protected int $deliveryId = 0; |
| 28 | protected string $state = ''; |
| 29 | protected ?string $reasonCode = null; |
| 30 | protected ?\DateTime $startedAt = null; |
| 31 | protected ?\DateTime $finishedAt = null; |
| 32 | |
| 33 | public function __construct() { |
| 34 | $this->addType('deliveryId', Types::INTEGER); |
| 35 | $this->addType('startedAt', Types::DATETIME); |
| 36 | $this->addType('finishedAt', Types::DATETIME); |
| 37 | } |
| 38 | } |