f7cloud_client/apps/assistant/lib/Db/TaskNotification.php
root 8b6a0139db f7cloud_client
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 22:59:26 +00:00

41 lines
861 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2024 F7cloud GmbH and F7cloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Assistant\Db;
use OCP\AppFramework\Db\Entity;
use OCP\DB\Types;
/**
* @method \int getOcpTaskId()
* @method \void setOcpTaskId(int $ocpTaskId)
* @method \int getTimestamp()
* @method \void setTimestamp(int $timestamp)
*/
class TaskNotification extends Entity implements \JsonSerializable {
/** @var int */
protected $ocpTaskId;
/** @var int */
protected $timestamp;
public function __construct() {
$this->addType('ocp_task_id', Types::INTEGER);
$this->addType('timestamp', Types::INTEGER);
}
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return [
'id' => $this->id,
'ocp_task_id' => $this->ocpTaskId,
'timestamp' => $this->timestamp,
];
}
}