-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathSubmissionVerification.php
More file actions
59 lines (52 loc) · 1.38 KB
/
SubmissionVerification.php
File metadata and controls
59 lines (52 loc) · 1.38 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
59
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Forms\Db;
use OCP\AppFramework\Db\Entity;
/**
* @method int getSubmissionId()
* @method void setSubmissionId(int $value)
* @method string getRecipientEmailHash()
* @method void setRecipientEmailHash(string $value)
* @method string getTokenHash()
* @method void setTokenHash(string $value)
* @method int getExpires()
* @method void setExpires(int $value)
* @method int|null getUsed()
* @method void setUsed(?int $value)
*/
class SubmissionVerification extends Entity {
protected $submissionId;
protected $recipientEmailHash;
protected $tokenHash;
protected $expires;
protected $used;
public function __construct() {
$this->addType('submissionId', 'integer');
$this->addType('expires', 'integer');
$this->addType('used', 'integer');
}
/**
* @return array{
* id: int,
* submissionId: int,
* recipientEmailHash: string,
* tokenHash: string,
* expires: int,
* used: int|null,
* }
*/
public function read(): array {
return [
'id' => $this->getId(),
'submissionId' => $this->getSubmissionId(),
'recipientEmailHash' => $this->getRecipientEmailHash(),
'tokenHash' => $this->getTokenHash(),
'expires' => $this->getExpires(),
'used' => $this->getUsed(),
];
}
}