메소드 |
설명 |
|
__construct ( array $initial = [] ) |
Constructor |
|
__get ( $name ) |
Overridden in order to allow atribute-like accessor for values in the
ValueHolder. |
|
__set ( $name, $value ) |
Overridden in order to allow atribute-like setter for values in the
ValueHolder. |
|
count ( ) : integer |
Get the number of arguments set to this ValueHolder. |
|
create ( array | ValueHolder $initial = [] ) : ValueHolder |
Create a new instance of ValueHolder with an optional initial set of values. |
|
get ( string $name, mixed $default = null ) : mixed |
Get the value stored under key $name if it's set - otherwise return
$default. |
|
getAll ( ) : array |
Get all the values stored in this ValueHolder as an array. |
|
isEmpty ( ) : boolean |
Answer whether this ValueHolder is empty. |
|
reset ( ) : ValueHolder |
Reset this ValueHolder's values, clearing any of them. |
|
set ( string $name, mixed $value ) : ValueHolder |
Set and store a value under key $name to $value. |
|
setAll ( array $values ) : ValueHolder |
Set all the values stored in this ValueHolder to $values,
destroying any previously-set ones. |
|