PHP Interface Kraken\Config\ConfigReaderInterface

Show file Open project: kraken-php/framework

Public Methods

Method Description
exists ( string $key ) : boolean Check if configuration under $key exists.
get ( string $key = '', mixed $default = null ) : mixed Get configuration saved under $key or $default if it does not exist.
getAll ( ) : array Get all configuration options.

Method Details

exists() public method

Check if configuration under $key exists.
public exists ( string $key ) : boolean
$key string
return boolean

get() public method

Get configuration saved under $key or $default if it does not exist.
public get ( string $key = '', mixed $default = null ) : mixed
$key string
$default mixed
return mixed

getAll() public method

Get all configuration options.
public getAll ( ) : array
return array