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();
Показать файл
Открыть проект
Примеры использования класса
Свойство | Тип | Описание | |
---|---|---|---|
$headers | array | Command request headers | |
$parameters | array | Command parameters | |
$riak | |||
$verbose |
Метод | Описание | |
---|---|---|
__construct ( |
||
build ( ) | Command build | |
getConnection ( ) | ||
getParameters ( ) | ||
getVerbose ( ) | ||
withParameter ( $key, $value = true ) | ||
withParameters ( $parameters = [] ) | ||
withVerboseMode ( $verbose = true ) |
Метод | Описание | |
---|---|---|
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 |