Class ArrayEntryStore
A class that gives get/put/clear access to a single entry in an array.
-
Dropbox\ArrayEntryStore
implements
Dropbox\ValueStore
Methods summary
public
|
#
__construct( array & $array, mixed $key )
Constructor.
Parameters
- $array
- The array that we'll be accessing.
- $key
- The key for the array element we'll be accessing.
|
public
object
|
#
get( )
Returns the entry's current value or null if nothing is set.
Returns the entry's current value or null if nothing is set.
Returns
object
Implementation of
|
public
|
#
set( object $value )
Set the array entry to the given value.
Set the array entry to the given value.
Parameters
Implementation of
|
public
|
#
clear( )
Clear the entry.
Implementation of
|