Files
quicknotes/lib/Db/NoteTag.php
2023-06-14 22:47:41 -03:00

31 lines
593 B
PHP

<?php
namespace OCA\QuickNotes\Db;
use JsonSerializable;
use OCP\AppFramework\Db\Entity;
/**
* @method string getUserId()
* @method void setUserId(string $userId)
* @method int getNoteId()
* @method void setNoteId(int $noteId)
* @method int getTagId()
* @method void setTagId(int $tagId)
*/
class NoteTag extends Entity implements JsonSerializable {
protected $noteId;
protected $tagId;
protected $userId;
public function jsonSerialize(): array {
return [
'id' => $this->id,
'noteid' => $this->noteId,
'tagid' => $this->tagId,
'userid' => $this->userId
];
}
}