42 lines
893 B
PHP
42 lines
893 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2018 F7cloud GmbH and F7cloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Richdocuments\Db;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
use OCP\DB\Types;
|
|
|
|
/**
|
|
* @method void setUid(string $uid)
|
|
* @method string getUid()
|
|
* @method void setFileid(int $fileid)
|
|
* @method int getFileid()
|
|
* @method void setToken(string $token)
|
|
* @method string getToken()
|
|
* @method void setTimestamp(int $timestamp)
|
|
* @method int getTimestamp()
|
|
*/
|
|
class Asset extends Entity {
|
|
/** @var string */
|
|
protected $uid;
|
|
|
|
/** @var int */
|
|
protected $fileid;
|
|
|
|
/** @var string */
|
|
protected $token;
|
|
|
|
/** @var int */
|
|
protected $timestamp;
|
|
|
|
public function __construct() {
|
|
$this->addType('uid', Types::STRING);
|
|
$this->addType('fileid', Types::INTEGER);
|
|
$this->addType('token', Types::STRING);
|
|
$this->addType('timestamp', Types::INTEGER);
|
|
}
|
|
}
|