-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathSignRequest.php
More file actions
58 lines (54 loc) · 1.82 KB
/
SignRequest.php
File metadata and controls
58 lines (54 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Libresign\Db;
use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;
/**
* @method void setId(int $uid)
* @method int getId()
* @method void setFileId(int $fileId)
* @method ?int getFileId()
* @method void setUuid(string $uuid)
* @method string getUuid()
* @method void setDescription(string $description)
* @method ?string getDescription()
* @method void setCreatedAt(\DateTime $createdAt)
* @method \DateTime getCreatedAt()
* @method void setSigned(\DateTime $signed)
* @method ?\DateTime getSigned()
* @method void setSignedHash(string $hash)
* @method ?string getSignedHash()
* @method void setDisplayName(string $displayName)
* @method string getDisplayName()
* @method void setMetadata(array $metadata)
* @method ?array getMetadata()
* @method void setDocmdpLevel(int $docmdpLevel)
* @method int getDocmdpLevel()
*/
class SignRequest extends Entity {
protected ?int $fileId = null;
protected string $uuid = '';
protected string $displayName = '';
protected ?string $description = null;
protected ?\DateTime $createdAt = null;
protected ?\DateTime $signed = null;
protected ?string $signedHash = null;
protected ?array $metadata = null;
protected int $docmdpLevel = 0;
public function __construct() {
$this->addType('id', Types::INTEGER);
$this->addType('fileId', Types::INTEGER);
$this->addType('uuid', Types::STRING);
$this->addType('displayName', Types::STRING);
$this->addType('description', Types::STRING);
$this->addType('createdAt', Types::DATETIME);
$this->addType('signed', Types::DATETIME);
$this->addType('signedHash', Types::STRING);
$this->addType('metadata', Types::JSON);
$this->addType('docmdpLevel', Types::SMALLINT);
}
}