use Basho\Riak\Command;
use Basho\Riak\Bucket;
use Basho\Riak\Location;
$bucket = new Bucket('users');
$command = (new Command\Builder(Command::STORE_OBJECT))
->withObject(new Object('test_data'))
->atLocation(new Location('test_key', $bucket))
->build();
Afficher le fichier
Open project: basho/riak-php-client
Class Usage Examples
Свойство | Type | Description | |
---|---|---|---|
$headers | array | Command request headers | |
$parameters | array | Command parameters | |
$riak | |||
$verbose |
Méthode | Description | |
---|---|---|
__construct ( |
||
build ( ) | Command build | |
getConnection ( ) | ||
getParameters ( ) | ||
getVerbose ( ) | ||
withParameter ( $key, $value = true ) | ||
withParameters ( $parameters = [] ) | ||
withVerboseMode ( $verbose = true ) |
Méthode | Description | |
---|---|---|
required ( $objectName ) | Used to verify a property within the builder is not null and is instantiated | |
validate ( ) : boolean | Validate command |
abstract public build ( ) |
protected required ( $objectName ) | ||
$objectName |