Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
IdDocs
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4/**
5 * SPDX-FileCopyrightText: 2025 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;
12
13/**
14 * @method void setId(int $id)
15 * @method int getId()
16 * @method void setFileId(int $fileId)
17 * @method int getFileId()
18 * @method void setSignRequestId(?int $signRequestId)
19 * @method int|null getSignRequestId()
20 * @method void setUserId(?string $userId)
21 * @method string|null getUserId()
22 * @method void setFileType(string $fileType)
23 * @method string getFileType()
24 */
25class IdDocs extends Entity {
26    protected int $fileId = 0;
27    protected ?int $signRequestId = null;
28    protected ?string $userId = null;
29    protected string $fileType = '';
30
31    public function __construct() {
32        $this->addType('id', 'integer');
33        $this->addType('fileId', 'integer');
34        $this->addType('signRequestId', 'integer');
35        $this->addType('userId', 'string');
36        $this->addType('fileType', 'string');
37    }
38}