mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +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;
|
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 {
|
class NoteShare extends Entity implements JsonSerializable {
|
||||||
|
|
||||||
protected $noteId;
|
protected $noteId;
|
||||||
protected $userId;
|
|
||||||
protected $sharedUser;
|
protected $sharedUser;
|
||||||
protected $sharedGroup;
|
protected $sharedGroup;
|
||||||
|
|
||||||
public function jsonSerialize() {
|
public function jsonSerialize() {
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'user_id' => $this->userId,
|
|
||||||
'note_id' => $this->noteId,
|
'note_id' => $this->noteId,
|
||||||
'shared_user' => $this->sharedUser,
|
'shared_user' => $this->sharedUser,
|
||||||
'shared_group' => $this->sharedGroup
|
'shared_group' => $this->sharedGroup
|
||||||
|
|||||||
Reference in New Issue
Block a user