PHP Class NinjaMutex\Tests\Mock\MockMemcache

Author: Kamil Dziedzic ([email protected])
Inheritance: extends Memcach\Memcache, implements NinjaMutex\Tests\Mock\PermanentServiceInterface
Show file Open project: arvenil/ninja-mutex

Protected Properties

Property Type Description
$available boolean Whether the service is available
$data string[]

Public Methods

Method Description
__construct ( )
add ( string $key, mixed $value ) : boolean
delete ( string $key ) : boolean | void
get ( string $key ) : array | boolean | string
setAvailable ( boolean $available )

Method Details

__construct() public method

public __construct ( )

add() public method

public add ( string $key, mixed $value ) : boolean
$key string
$value mixed
return boolean

delete() public method

public delete ( string $key ) : boolean | void
$key string
return boolean | void

get() public method

public get ( string $key ) : array | boolean | string
$key string
return array | boolean | string

setAvailable() public method

public setAvailable ( boolean $available )
$available boolean

Property Details

$available protected property

Whether the service is available
protected bool $available
return boolean

$data protected static property

protected static string[] $data
return string[]