PHP 인터페이스 Autarky\Config\ConfigInterface

파일 보기 프로젝트 열기: autarky/framework 0 사용 예제들

공개 메소드들

메소드 설명
get ( string $key, mixed $default = null ) : mixed Get an item from the store.
has ( string $key ) : boolean Determine if a key exists in the store.
mount ( string $location, string $path ) : void Mount a path to a specific location in the config tree.
set ( string $key, mixed $value ) : void Set an item in the store temporarily - more specifically, the lifetime of the store object.
setEnvironment ( string $environment ) Set the environment.

메소드 상세

get() 공개 메소드

Get an item from the store.
public get ( string $key, mixed $default = null ) : mixed
$key string
$default mixed If the value is not found, return this instead.
리턴 mixed

has() 공개 메소드

Should return true even if the value is null.
public has ( string $key ) : boolean
$key string
리턴 boolean

mount() 공개 메소드

Mount a path to a specific location in the config tree.
public mount ( string $location, string $path ) : void
$location string
$path string
리턴 void

set() 공개 메소드

Set an item in the store temporarily - more specifically, the lifetime of the store object.
public set ( string $key, mixed $value ) : void
$key string
$value mixed
리턴 void

setEnvironment() 공개 메소드

Set the environment.
public setEnvironment ( string $environment )
$environment string