mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-12-01 02:17:00 +01:00
Explain the methods of the NoteShare entity and clean..
This commit is contained in:
1 parent
69c15d4b8c
commit
443f6bf144
1 file changed
+8
-2
@@ -5,17 +5,23 @@ use JsonSerializable;
|
||||
|
||||
use OCP\AppFramework\Db\Entity;
|
||||
|
||||
/**
|
||||
* @method int getNoteId()
|
||||
* @method void setNoteId(int $noteId)
|
||||
* @method string getSharedUser()
|
||||
* @method void setSharedUser(string $userId)
|
||||
* @method string getSharedGroup()
|
||||
* @method void setSharedGroup(string $groupId)
|
||||
*/
|
||||
class NoteShare extends Entity implements JsonSerializable {
|
||||
|
||||
protected $noteId;
|
||||
protected $userId;
|
||||
protected $sharedUser;
|
||||
protected $sharedGroup;
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'user_id' => $this->userId,
|
||||
'note_id' => $this->noteId,
|
||||
'shared_user' => $this->sharedUser,
|
||||
'shared_group' => $this->sharedGroup
|
||||
|
||||
Reference in new issue
Block a user