PHP Class Webmozart\KeyValueStore\Decorator\AbstractDecorator

It is used by decorators that need to override only a few specific methods (such as SortableDecorator or CountableDecorator).
Since: 1.0
Author: Bernhard Schussek ([email protected])
Author: Titouan Galopin ([email protected])
Inheritance: implements Webmozart\KeyValueStore\Api\KeyValueStore
Mostrar archivo Open project: webmozart/key-value-store Class Usage Examples

Protected Properties

Property Type Description
$store Webmozart\KeyValueStore\Api\KeyValueStore

Public Methods

Method Description
__construct ( Webmozart\KeyValueStore\Api\KeyValueStore $store ) Creates the store.
clear ( )
exists ( $key )
get ( $key, $default = null )
getMultiple ( array $keys, $default = null )
getMultipleOrFail ( array $keys )
getOrFail ( $key )
keys ( )
remove ( $key )
set ( $key, $value )

Method Details

__construct() public method

Creates the store.
public __construct ( Webmozart\KeyValueStore\Api\KeyValueStore $store )
$store Webmozart\KeyValueStore\Api\KeyValueStore The store to sort.

clear() public method

public clear ( )

exists() public method

public exists ( $key )

get() public method

public get ( $key, $default = null )

getMultiple() public method

public getMultiple ( array $keys, $default = null )
$keys array

getMultipleOrFail() public method

public getMultipleOrFail ( array $keys )
$keys array

getOrFail() public method

public getOrFail ( $key )

keys() public method

public keys ( )

remove() public method

public remove ( $key )

set() public method

public set ( $key, $value )

Property Details

$store protected_oe property

protected KeyValueStore,Webmozart\KeyValueStore\Api $store
return Webmozart\KeyValueStore\Api\KeyValueStore