PHP Class HippoPHP\Hippo\Config\Config

ファイルを表示 Open project: hippophp/hippo Class Usage Examples

Public Methods

Method Description
__construct ( array $array = [] )
get ( string $key, mixed $defaultValue = null ) : mixed
remove ( string $key )
set ( string $key, mixed $value )

Private Methods

Method Description
_normalizeArray ( array $array ) : array<
navigateToKey ( string $key, boolean $createSections ) : mixed
normalizeKey ( string $key ) : string

Method Details

__construct() public method

public __construct ( array $array = [] )
$array array

get() public method

public get ( string $key, mixed $defaultValue = null ) : mixed
$key string
$defaultValue mixed
return mixed

remove() public method

public remove ( string $key )
$key string

set() public method

public set ( string $key, mixed $value )
$key string
$value mixed