SettingsStorage
in package
implements
SettingsStorageInterface
Table of Contents
Interfaces
Constants
- SETTINGS_KEY = 'settings'
Properties
Methods
- __construct() : mixed
- get() : mixed
- save() : bool
Constants
SETTINGS_KEY
public
mixed
SETTINGS_KEY
= 'settings'
Properties
$driver
private
StorageDriverInterface
$driver
$translator
private
SettingsTranslatorInterface
$translator
Methods
__construct()
public
__construct(StorageDriverInterface $driver, SettingsTranslatorInterface $translator) : mixed
Parameters
- $driver : StorageDriverInterface
- $translator : SettingsTranslatorInterface
get()
public
get() : mixed
save()
public
save(array<string|int, mixed> $settings) : bool
Parameters
- $settings : array<string|int, mixed>