class Config extends ConfigOverlay implements GlobalOptionDefaultValuesInterface (View source)

Constants

PROGRESS_BAR_AUTO_DISPLAY_INTERVAL

DEFAULT_PROGRESS_DELAY

SIMULATE

INTERACTIVE

DECORATED

Properties

protected array $defaults

Methods

__construct(array $data = [])

Create a new configuration object, and initialize it with the provided nested array containing configuration data.

import($data)

{@inheritdoc}

replace($data)

{@inheritdoc}

combine($data)

{@inheritdoc}

array
getGlobalOptionDefaultValues()

Return an associative array containing all of the global configuration options and their default values.

array
trimPrefixFromGlobalOptions(array $globalOptions)

Remove the 'options.' prefix from the global options list.

bool
isSimulated() deprecated

No description

$this
setSimulated(bool $simulated = true) deprecated

No description

bool
isInteractive() deprecated

No description

$this
setInteractive(bool $interactive = true) deprecated

No description

bool
isDecorated() deprecated

No description

$this
setDecorated(bool $decorated = true) deprecated

No description

$this
setProgressBarAutoDisplayInterval(int $interval) deprecated

No description

Details

__construct(array $data = [])

Create a new configuration object, and initialize it with the provided nested array containing configuration data.

Parameters

array $data

import($data)

{@inheritdoc}

Parameters

$data

replace($data)

{@inheritdoc}

Parameters

$data

combine($data)

{@inheritdoc}

Parameters

$data

array getGlobalOptionDefaultValues()

Return an associative array containing all of the global configuration options and their default values.

Return Value

array

protected array trimPrefixFromGlobalOptions(array $globalOptions)

Remove the 'options.' prefix from the global options list.

Parameters

array $globalOptions

Return Value

array

bool isSimulated() deprecated

deprecated Use $config->get(Config::SIMULATE)

No description

Return Value

bool

$this setSimulated(bool $simulated = true) deprecated

deprecated Use $config->set(Config::SIMULATE, true)

No description

Parameters

bool $simulated

Return Value

$this

bool isInteractive() deprecated

deprecated Use $config->get(Config::INTERACTIVE)

No description

Return Value

bool

$this setInteractive(bool $interactive = true) deprecated

deprecated Use $config->set(Config::INTERACTIVE, true)

No description

Parameters

bool $interactive

Return Value

$this

bool isDecorated() deprecated

deprecated Use $config->get(Config::DECORATED)

No description

Return Value

bool

$this setDecorated(bool $decorated = true) deprecated

deprecated Use $config->set(Config::DECORATED, true)

No description

Parameters

bool $decorated

Return Value

$this

$this setProgressBarAutoDisplayInterval(int $interval) deprecated

deprecated Use $config->set(Config::PROGRESS_BAR_AUTO_DISPLAY_INTERVAL, $interval)

No description

Parameters

int $interval

Return Value

$this