bookmarks/lib/Db/PublicFolder.php

52 lines
1.1 KiB
PHP
Raw Normal View History

<?php
2020-09-21 12:25:50 +00:00
/*
* Copyright (c) 2020-2024. The Nextcloud Bookmarks contributors.
2020-09-21 12:25:50 +00:00
*
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/
namespace OCA\Bookmarks\Db;
use OCP\AppFramework\Db\Entity;
2020-03-05 11:45:42 +00:00
/**
* Class PublicFolder
*
* @package OCA\Bookmarks\Db
*
* @method string getId()
* @method int getFolderId()
2020-03-05 11:45:42 +00:00
* @method setFolderId(int $folderId)
* @method string getDescription()
2020-03-05 11:45:42 +00:00
* @method setDescription(string $description)
* @method int getCreatedAt()
2020-03-05 11:45:42 +00:00
* @method setCreatedAt(int $createdAt)
*/
class PublicFolder extends Entity {
/**
* @var string
*/
public $id;
protected $folderId;
protected $description;
protected $createdAt;
public static $columns = ['id', 'folder_id', 'description', 'created_at'];
public function __construct() {
// add types in constructor
$this->addType('id', 'string');
$this->addType('folderId', 'integer');
$this->addType('description', 'integer');
$this->addType('created_at', 'integer');
}
/*
* Overridden because of param type
*/
2020-03-05 11:45:42 +00:00
public function setId(string $id): void {
$this->id = $id;
$this->markFieldUpdated('id');
}
}