mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Convert colorMapper to QBMapper
This commit is contained in:
@@ -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