class Configuration (View source)

Traits

Properties

protected array $parameters from ConfigurationParametersTrait

Methods

mixed|null
get(string $parameter = null)

Get parameter (property) from stack

set($parameter, $value)

Set a parameter (property)

bool
has(string $parameter)

Check if parameter (property) is defined in current stack

bool
delete(string $parameter = null)

Remove (delete) parameter (property) from stack

getFromParts(array $parts)

No description

setFromParts(array $parts, $value)

No description

deleteFromParts(array $parts)

No description

static 
splitParts($parameter)

No description

__construct(array $configuration = [])

Create a configuration object from array of values

bool
isDefined(string $property) deprecated

Check if a property is defined

merge(array $properties)

Merge a bundle of properties into actual configuration model

static 
create(array $configuration = [])

No description

Details

mixed|null get(string $parameter = null)

Get parameter (property) from stack

This method supports nesting of properties using dot notation

Parameters

string $parameter

Return Value

mixed|null

ConfigurationParametersTrait set($parameter, $value)

Set a parameter (property)

This method supports nesting of properties using dot notation

Parameters

$parameter
$value

Return Value

ConfigurationParametersTrait

bool has(string $parameter)

Check if parameter (property) is defined in current stack

This method supports nesting of properties using dot notation

Parameters

string $parameter

Return Value

bool

bool delete(string $parameter = null)

Remove (delete) parameter (property) from stack

This method supports nesting of properties using dot notation

Parameters

string $parameter

Return Value

bool

protected getFromParts(array $parts)

Parameters

array $parts

protected setFromParts(array $parts, $value)

Parameters

array $parts
$value

protected deleteFromParts(array $parts)

Parameters

array $parts

static protected splitParts($parameter)

Parameters

$parameter

Configuration __construct(array $configuration = [])

Create a configuration object from array of values

Parameters

array $configuration

Return Value

Configuration

bool isDefined(string $property) deprecated

deprecated

Check if a property is defined

Parameters

string $property

Return Value

bool

See also

Configuration::has()

Configuration merge(array $properties)

Merge a bundle of properties into actual configuration model

Parameters

array $properties

Return Value

Configuration

static create(array $configuration = [])

Parameters

array $configuration