Skip to content

ConfigContainer


  • Full name: \Qubus\Config\ConfigContainer
  • Parent interfaces: ValueType

Methods

getConfigKey

Get an item from current configuration.

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

Parameters:

Parameter Type Description
$key string
$default mixed|null

Throws:


setConfigKey

Set an item in current configuration.

public setConfigKey(string $key, mixed $value): void|self

Parameters:

Parameter Type Description
$key string
$value mixed

hasConfigKey

Checks if a key exists.

public hasConfigKey(string $key): bool

Parameters:

Parameter Type Description
$key string