mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
24 lines
441 B
PHP
24 lines
441 B
PHP
<?php
|
|
namespace OCA\QuickNotes\Db;
|
|
|
|
use JsonSerializable;
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
class Note extends Entity implements JsonSerializable {
|
|
|
|
protected $description;
|
|
protected $done;
|
|
protected $ordering;
|
|
protected $noteId;
|
|
|
|
public function jsonSerialize() {
|
|
return [
|
|
'id' => $this->id,
|
|
'description' => $this->description,
|
|
'done' => $this->done,
|
|
'ordering' => $this->ordering,
|
|
'noteId' => $this->noteId
|
|
];
|
|
}
|
|
} |