GetSetting
in package
Use case for getting a single setting value.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : string
- 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(string $key[, string $default = '' ]) : string
Parameters
- $key : string
-
Setting key
- $default : string = ''
-
Default value if not found
Return values
string —Setting value