PHP Class HippoPHP\Hippo\Config\Config

Afficher le fichier Open project: hippophp/hippo Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

__construct() public méthode

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

get() public méthode

public get ( string $key, mixed $defaultValue = null ) : mixed
$key string
$defaultValue mixed
Résultat mixed

remove() public méthode

public remove ( string $key )
$key string

set() public méthode

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