mirror of
https://github.com/chenasraf/nextcloud-autocurrency.git
synced 2026-05-18 01:29:05 +00:00
34 lines
776 B
PHP
Executable File
34 lines
776 B
PHP
Executable File
<?php
|
|
declare(strict_types=1);
|
|
// SPDX-FileCopyrightText: Chen Asraf <contact@casraf.dev>
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace OCA\AutoCurrency\Db;
|
|
|
|
use JsonSerializable;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
/**
|
|
* @method getId(): int
|
|
* @method getTitle(): string
|
|
* @method setTitle(string $title): void
|
|
* @method getContent(): string
|
|
* @method setContent(string $content): void
|
|
* @method getUserId(): string
|
|
* @method setUserId(string $userId): void
|
|
*/
|
|
class Note extends Entity implements JsonSerializable {
|
|
protected string $title = '';
|
|
protected string $content = '';
|
|
protected string $userId = '';
|
|
|
|
public function jsonSerialize(): array {
|
|
return [
|
|
'id' => $this->id,
|
|
'title' => $this->title,
|
|
'content' => $this->content
|
|
];
|
|
}
|
|
}
|