userId = $userId; } public function setDisplayName (string $displayName): void { $this->displayName = $displayName; } public function jsonSerialize(): array { return [ 'id' => $this->id, 'note_id' => $this->noteId, 'shared_user' => $this->sharedUser, 'shared_group' => $this->sharedGroup, 'user_id' => $this->userId, 'display_name' => $this->displayName ]; } }