2021-08-21 14:17:14 +00:00
|
|
|
<?php
|
|
|
|
|
2021-08-21 14:25:23 +00:00
|
|
|
namespace OCA\UPschooling\Db;
|
2021-08-21 14:17:14 +00:00
|
|
|
|
|
|
|
use JsonSerializable;
|
|
|
|
|
|
|
|
use OCP\AppFramework\Db\Entity;
|
|
|
|
|
|
|
|
class Note extends Entity implements JsonSerializable {
|
|
|
|
protected $title;
|
|
|
|
protected $content;
|
|
|
|
protected $userId;
|
|
|
|
|
|
|
|
public function jsonSerialize(): array {
|
|
|
|
return [
|
|
|
|
'id' => $this->id,
|
|
|
|
'title' => $this->title,
|
|
|
|
'content' => $this->content
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|