*/ final readonly class GetSettingsQuery implements Query { public function __invoke(QueryInput $input): SettingDto { Assert::isAOf( $input, QueryInputEmpty::class, ); $setting = Setting::getSingleton(); return SettingDto::fromModel($setting); } }