PHP Класс ScriptFUSION\Porter\Options\EncapsulatedOptions

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

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

Метод Описание
copy ( ) : array Creates a copy of the encapsulated options.

Защищенные методы

Метод Описание
get ( string $option ) : mixed Gets the value for the specified option name. Returns the specified default value if option name is not set.
getReference ( string $option ) : mixed Gets a pointer to the specified option name.
set ( string $option, mixed $value ) Sets the specified option name to the specified value.
setDefaults ( array $defaults ) Sets the default values for the specified map of keys and values.

Описание методов

copy() закрытый публичный Метод

Creates a copy of the encapsulated options.
final public copy ( ) : array
Результат array Options.

get() закрытый защищенный Метод

Gets the value for the specified option name. Returns the specified default value if option name is not set.
final protected get ( string $option ) : mixed
$option string Option name.
Результат mixed Option value or default value.

getReference() закрытый защищенный Метод

Gets a pointer to the specified option name.
final protected getReference ( string $option ) : mixed
$option string Option name.
Результат mixed

set() закрытый защищенный Метод

Sets the specified option name to the specified value.
final protected set ( string $option, mixed $value )
$option string Option name.
$value mixed Value.

setDefaults() закрытый защищенный Метод

Sets the default values for the specified map of keys and values.
final protected setDefaults ( array $defaults )
$defaults array Map of keys and default values.