libresign/lib/Db/SignRequest.php
Vitor Mattos 45cd3c374d
chore: Add SPDX header
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-05-14 12:32:04 -03:00

71 lines
1.5 KiB
PHP

<?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(int $createdAt)
* @method int getCreatedAt()
* @method void setSigned(int $signed)
* @method int getSigned()
* @method void setDisplayName(string $displayName)
* @method string getDisplayName()
* @method void setMetadata(array $metadata)
* @method array getMetadata()
*/
class SignRequest extends Entity {
/** @var integer */
public $id;
/** @var integer */
protected $fileId;
/** @var string */
/** @var string */
protected $uuid;
/** @var string */
/** @var string */
protected $displayName;
/** @var string */
protected $description;
/** @var int */
protected $createdAt;
/** @var int */
protected $signed;
/** @var string */
protected $metadata;
public function __construct() {
$this->addType('id', 'integer');
$this->addType('fileId', 'integer');
$this->addType('uuid', 'string');
$this->addType('displayName', 'string');
$this->addType('description', 'string');
$this->addType('createdAt', 'integer');
$this->addType('signed', 'integer');
$this->addType('metadata', Types::JSON);
}
}