mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Explain the methods of the NoteShare entity and clean..
This commit is contained in:
@@ -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