PHP 클래스 Kraken\Config\Config

상속: implements Kraken\Config\ConfigInterface
파일 보기 프로젝트 열기: kraken-php/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config array
$overwriteHandler callable

공개 메소드들

메소드 설명
__construct ( array $config = [], callable $handler = null )
__destruct ( )
exists ( $key )
get ( $key = '', $default = null )
getAll ( )
getConfiguration ( )
getOverwriteHandler ( )
merge ( $config, $handler = null )
remove ( $key )
set ( $key, $value )
setConfiguration ( $config )
setOverwriteHandler ( callable $handler = null )

보호된 메소드들

메소드 설명
getDefaultHandler ( ) : callable
overwrite ( array $current, array $new, callable | null $handler = null ) : array Overwrites current config using known method.

메소드 상세

__construct() 공개 메소드

public __construct ( array $config = [], callable $handler = null )
$config array
$handler callable

__destruct() 공개 메소드

public __destruct ( )

exists() 공개 메소드

public exists ( $key )

get() 공개 메소드

public get ( $key = '', $default = null )

getAll() 공개 메소드

public getAll ( )

getConfiguration() 공개 메소드

public getConfiguration ( )

getDefaultHandler() 보호된 메소드

protected getDefaultHandler ( ) : callable
리턴 callable

getOverwriteHandler() 공개 메소드

public getOverwriteHandler ( )

merge() 공개 메소드

public merge ( $config, $handler = null )

overwrite() 보호된 메소드

Overwrites current config using known method.
protected overwrite ( array $current, array $new, callable | null $handler = null ) : array
$current array
$new array
$handler callable | null
리턴 array

remove() 공개 메소드

public remove ( $key )

set() 공개 메소드

public set ( $key, $value )

setConfiguration() 공개 메소드

public setConfiguration ( $config )

setOverwriteHandler() 공개 메소드

public setOverwriteHandler ( callable $handler = null )
$handler callable

프로퍼티 상세

$config 보호되어 있는 프로퍼티

protected array $config
리턴 array

$overwriteHandler 보호되어 있는 프로퍼티

protected callable $overwriteHandler
리턴 callable