ResetAllSettings
in package
Use case for resetting all settings to defaults.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : array{success: bool}
- Execute the use case.
Properties
$repository
private
SettingsRepositoryInterface
$repository
Methods
__construct()
Constructor.
public
__construct(SettingsRepositoryInterface $repository) : mixed
Parameters
- $repository : SettingsRepositoryInterface
-
Settings repository
execute()
Execute the use case.
public
execute() : array{success: bool}
Deletes all settings with 'set-' prefix, restoring defaults.