0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-01-16 16:19:00 +00:00
nextcloud_server/apps/files_reminders/lib/Db/Reminder.php
Andy Scherzinger 8d8891c5bc
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-30 15:49:33 +02:00

50 lines
1.2 KiB
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\FilesReminders\Db;
use DateTime;
use OCP\AppFramework\Db\Entity;
/**
* @method void setUserId(string $userId)
* @method string getUserId()
*
* @method void setFileId(int $fileId)
* @method int getFileId()
*
* @method void setDueDate(DateTime $dueDate)
* @method DateTime getDueDate()
*
* @method void setUpdatedAt(DateTime $updatedAt)
* @method DateTime getUpdatedAt()
*
* @method void setCreatedAt(DateTime $createdAt)
* @method DateTime getCreatedAt()
*
* @method void setNotified(bool $notified)
* @method bool getNotified()
*/
class Reminder extends Entity {
protected $userId;
protected $fileId;
protected $dueDate;
protected $updatedAt;
protected $createdAt;
protected $notified = false;
public function __construct() {
$this->addType('userId', 'string');
$this->addType('fileId', 'integer');
$this->addType('dueDate', 'datetime');
$this->addType('updatedAt', 'datetime');
$this->addType('createdAt', 'datetime');
$this->addType('notified', 'boolean');
}
}