PHP Интерфейс Autarky\Config\ConfigInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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