mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-17 21:12:14 +01:00
64 lines
1.4 KiB
PHP
64 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Richdocuments\Db;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
/**
|
|
* @method void setToken(string $token)
|
|
* @method string getToken()
|
|
* @method void setUid(string $uid)
|
|
* @method string getUid()
|
|
* @method void setFileid(int $fileid)
|
|
* @method int getFileid()
|
|
* @method void setTimestamp(int $timestamp)
|
|
* @method int getTimestamp()
|
|
* @method void setTemplateDestination(int $fileId)
|
|
* @method int getTemplateDestination()
|
|
* @method void setTemplateId(int $fileId)
|
|
* @method int getTemplateId()
|
|
*/
|
|
class Direct extends Entity {
|
|
/** @var string */
|
|
protected $token;
|
|
|
|
/** @var string */
|
|
protected $uid;
|
|
|
|
/** @var int */
|
|
protected $fileid;
|
|
|
|
/** @var int */
|
|
protected $timestamp;
|
|
|
|
/** @var int */
|
|
protected $templateDestination;
|
|
|
|
/** @var int */
|
|
protected $templateId;
|
|
|
|
/** @var string */
|
|
protected $share;
|
|
|
|
/** @var string */
|
|
protected $initiatorHost;
|
|
|
|
/** @var string */
|
|
protected $initiatorToken;
|
|
|
|
public function __construct() {
|
|
$this->addType('token', 'string');
|
|
$this->addType('uid', 'string');
|
|
$this->addType('fileid', 'int');
|
|
$this->addType('timestamp', 'int');
|
|
$this->addType('templateDestination', 'int');
|
|
$this->addType('templateId', 'int');
|
|
$this->addType('share', 'string');
|
|
$this->addType('initiatorHost', 'string');
|
|
$this->addType('initiatorToken', 'string');
|
|
}
|
|
}
|