PHP Class ScriptFUSION\Porter\Options\EncapsulatedOptions

Afficher le fichier Open project: ScriptFUSION/Porter Class Usage Examples

Méthodes publiques

Méthode Description
copy ( ) : array Creates a copy of the encapsulated options.

Méthodes protégées

Méthode Description
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.

Method Details

copy() final public méthode

Creates a copy of the encapsulated options.
final public copy ( ) : array
Résultat array Options.

get() final protected méthode

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.
Résultat mixed Option value or default value.

getReference() final protected méthode

Gets a pointer to the specified option name.
final protected getReference ( string $option ) : mixed
$option string Option name.
Résultat mixed

set() final protected méthode

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

setDefaults() final protected méthode

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.