settings); } public function get(string $id): mixed { if (array_key_exists($id, $this->settings)) { return $this->settings[$id]; } throw new UserSettingsNotFoundException( 'User setting "' . $id . '" is not available.', 1738500000 ); } public function toArray(): array { return $this->settings; } public function isEmailMeAtLoginEnabled(): bool { return (bool)($this->settings['emailMeAtLogin'] ?? false); } public function isUploadFieldsInTopOfEBEnabled(): bool { return (bool)($this->settings['edit_docModuleUpload'] ?? true); } }