Convert colorMapper to QBMapper

This commit is contained in:
Matias De lellis
2021-09-20 20:14:17 -03:00
parent 443f6bf144
commit 3365a914c7
3 changed files with 33 additions and 16 deletions

View File

@@ -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
];
}