\Fuman_System_Trait_Configurable

Class Fuman_System_Trait_Configurable

Summary

Methods
Properties
Constants
setConfig()
getConfig()
getConfigValue()
hasConfigValue()
hasConfigValues()
setConfigValue()
getConfigValueOrDefault()
No public properties found
No constants found
No protected methods found
$_config
N/A
No private methods found
No private properties found
N/A

Properties

$_config

$_config : \stdClass

Type

\stdClass

Methods

setConfig()

setConfig(\stdClass  $config) 

Set Config

Parameters

\stdClass $config

getConfig()

getConfig() : \stdClass

Get Config

Returns

\stdClass

getConfigValue()

getConfigValue(string  $key) : mixed

Get config value

Parameters

string $key

Returns

mixed

hasConfigValue()

hasConfigValue(string  $key) : string

Returns true when config value is set

Parameters

string $key

Returns

string

hasConfigValues()

hasConfigValues() : boolean

Returns true when all keys are set

Returns

boolean

setConfigValue()

setConfigValue(string  $key, string  $value) : void

Set Config Value

Parameters

string $key
string $value

getConfigValueOrDefault()

getConfigValueOrDefault(string  $key, mixed|null  $default = null) : mixed

Returns a config value or default

Parameters

string $key
mixed|null $default

Returns

mixed