Explain the methods of the NoteShare entity and clean..

This commit is contained in:
Matias De lellis
2021-09-20 19:52:13 -03:00
parent 69c15d4b8c
commit 443f6bf144

View File

@@ -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