PHP Class Bravo3\Orm\Tests\Drivers\Redis\DummyClient

Inheritance: implements Predis\ClientInterface
Show file Open project: bravo3/orm

Public Methods

Method Description
__call ( $method, $arguments )
connect ( ) Opens the underlying connection to the server.
createCommand ( string $method, array $arguments = [] ) : Predis\Command\CommandInterface Creates a new instance of the specified Redis command.
disconnect ( ) Closes the underlying connection from the server.
executeCommand ( Predis\Command\CommandInterface $command ) : mixed Executes the specified Redis command.
exists ( string $key ) : boolean Empty function to mock calls to Predis/Client
get ( string $key ) : string Empty function to mock calls to Predis/Client
getConnection ( ) : ConnectionInterface Returns the underlying connection instance.
getOptions ( ) : OptionsInterface Returns the client options specified upon initialization.
getProfile ( ) : ProfileInterface Returns the server profile used by the client.

Method Details

__call() public method

public __call ( $method, $arguments )

connect() public method

Opens the underlying connection to the server.
public connect ( )

createCommand() public method

Creates a new instance of the specified Redis command.
public createCommand ( string $method, array $arguments = [] ) : Predis\Command\CommandInterface
$method string Command ID.
$arguments array Arguments for the command.
return Predis\Command\CommandInterface

disconnect() public method

Closes the underlying connection from the server.
public disconnect ( )

executeCommand() public method

Executes the specified Redis command.
public executeCommand ( Predis\Command\CommandInterface $command ) : mixed
$command Predis\Command\CommandInterface Command instance.
return mixed

exists() public method

Empty function to mock calls to Predis/Client
public exists ( string $key ) : boolean
$key string
return boolean

get() public method

Empty function to mock calls to Predis/Client
public get ( string $key ) : string
$key string
return string

getConnection() public method

Returns the underlying connection instance.
public getConnection ( ) : ConnectionInterface
return ConnectionInterface

getOptions() public method

Returns the client options specified upon initialization.
public getOptions ( ) : OptionsInterface
return OptionsInterface

getProfile() public method

Returns the server profile used by the client.
public getProfile ( ) : ProfileInterface
return ProfileInterface