From 443f6bf14432636c4c8322efa2a73f62a7e330aa Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Mon, 20 Sep 2021 19:52:13 -0300 Subject: [PATCH] Explain the methods of the NoteShare entity and clean.. --- lib/Db/NoteShare.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/Db/NoteShare.php b/lib/Db/NoteShare.php index f522a1c..8d1a700 100644 --- a/lib/Db/NoteShare.php +++ b/lib/Db/NoteShare.php @@ -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