mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 23:57:18 +01:00
31 lines
593 B
PHP
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
|
|
];
|
|
}
|
|
|
|
} |