Files
quicknotes/db/note.php
Matias De lellis 886605bc01 Initial release
2016-05-20 09:46:46 -03:00

23 lines
393 B
PHP

<?php
namespace OCA\QuickNotes\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
class Note extends Entity implements JsonSerializable {
protected $title;
protected $content;
protected $color;
protected $userId;
public function jsonSerialize() {
return [
'id' => $this->id,
'title' => $this->title,
'content' => $this->content,
'color' => $this->color
];
}
}