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();
Show file
Open project: basho/riak-php-client
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$headers | array | Command request headers | |
$parameters | array | Command parameters | |
$riak | |||
$verbose |
Method | Description | |
---|---|---|
__construct ( |
||
build ( ) | Command build | |
getConnection ( ) | ||
getParameters ( ) | ||
getVerbose ( ) | ||
withParameter ( $key, $value = true ) | ||
withParameters ( $parameters = [] ) | ||
withVerboseMode ( $verbose = true ) |
Method | 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 |