PHP Class Fakerino\Configuration\FakerinoConf

Author: Nicola Pietroluongo ([email protected])
Mostra file Open project: fakerino/fakerino Class Usage Examples

Public Methods

Method Description
__construct ( array $conf = null )
get ( string $value ) : mixed Returns a configuration value.
loadConfiguration ( ) : array Loads the default configuration if it's not present a custom one.
toArray ( ) : array Returns the configuration in an array.

Private Methods

Method Description
loadDefault ( ) : array Initializes the default values.

Method Details

__construct() public method

public __construct ( array $conf = null )
$conf array

get() public method

Returns a configuration value.
public get ( string $value ) : mixed
$value string
return mixed

loadConfiguration() public method

Loads the default configuration if it's not present a custom one.
public loadConfiguration ( ) : array
return array

toArray() public method

Returns the configuration in an array.
public toArray ( ) : array
return array