class BaseConfig implements ConfigInterface

Offers basic abstraction over the JSON config. You can extend it and add your own getters for custom parameters.

It's then easier to use them then to remember under which key they are in the paramteres array.

Properties

protected mixed[] $config

Methods

__construct(array $config, ConfigurationInterface|null $configDefinition = null)

No description

array|null
getData()

Returns all the data in config as associative array

mixed
getValue(array $keys, mixed $default = null)

Returns value by key. You can supply default value for when the key is missing.

array
getParameters()

Returns parameters section of the config

array
getStorage()

Returns storage section of the config

array
getImageParameters()

Returns image_parameters section of the config

array
getAuthorization()

Returns authorization section of the config

string
getAction()

Returns action section of the config

array
getInputFiles()

No description

array
getExpectedOutputFiles()

No description

array
getInputTables()

No description

array
getExpectedOutputTables()

No description

mixed
getOAuthApiData()

No description

string
getOAuthApiAppSecret()

No description

string
getOAuthApiAppKey()

No description

Details

at line 29
__construct(array $config, ConfigurationInterface|null $configDefinition = null)

Parameters

array $config Configuration array
ConfigurationInterface|null $configDefinition (optional) Custom class to validate the config

at line 60
array|null getData()

Returns all the data in config as associative array

Return Value

array|null

at line 73
mixed getValue(array $keys, mixed $default = null)

Returns value by key. You can supply default value for when the key is missing.

Without default value exception is thrown for nonexistent keys.

Parameters

array $keys
mixed $default

Return Value

mixed

at line 97
array getParameters()

Returns parameters section of the config

Return Value

array

at line 107
array getStorage()

Returns storage section of the config

Return Value

array

at line 117
array getImageParameters()

Returns image_parameters section of the config

Return Value

array

at line 127
array getAuthorization()

Returns authorization section of the config

Return Value

array

at line 137
string getAction()

Returns action section of the config

Return Value

string

at line 145
array getInputFiles()

Return Value

array

at line 153
array getExpectedOutputFiles()

Return Value

array

at line 161
array getInputTables()

Return Value

array

at line 169
array getExpectedOutputTables()

Return Value

array

at line 177
mixed getOAuthApiData()

Return Value

mixed

at line 182
string getOAuthApiAppSecret()

Return Value

string

at line 187
string getOAuthApiAppKey()

Return Value

string