mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-12-01 02:17:00 +01:00
Convert colorMapper to QBMapper
This commit is contained in:
1 parent
443f6bf144
commit
3365a914c7
3 files changed
+33
-16
No files matched your search
@@ -19,12 +19,19 @@ class NoteShare extends Entity implements JsonSerializable {
|
||||
protected $sharedUser;
|
||||
protected $sharedGroup;
|
||||
|
||||
protected $userId;
|
||||
|
||||
public function setUserId (string $userId): void {
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'note_id' => $this->noteId,
|
||||
'shared_user' => $this->sharedUser,
|
||||
'shared_group' => $this->sharedGroup
|
||||
'shared_group' => $this->sharedGroup,
|
||||
'user_id' => $this->userId
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user