PHP 클래스 ScriptFUSION\Porter\Options\EncapsulatedOptions

파일 보기 프로젝트 열기: ScriptFUSION/Porter 1 사용 예제들

공개 메소드들

메소드 설명
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.