$command = (new Command\Builder\StoreObject($riak))
->buildObject('{"firstName":"John","lastName":"Doe","email":"[email protected]"}')
->buildBucket('users')
->build();
$response = $command->execute();
$user_location = $response->getLocation();
Mostrar archivo
Open project: basho/riak-php-client
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$decodeAsAssociative | boolean |
Method | Description | |
---|---|---|
build ( ) : Basho\Riak\Command\Object\Store | ||
getDecodeAsAssociative ( ) : boolean | Fetch the setting for decodeAsAssociative. | |
validate ( ) | ||
withDecodeAsAssociative ( ) | Tells the client to decode the data as an associative array instead of a PHP stdClass object. |
public build ( ) : Basho\Riak\Command\Object\Store | ||
return | Basho\Riak\Command\Object\Store |
public getDecodeAsAssociative ( ) : boolean | ||
return | boolean |
public withDecodeAsAssociative ( ) |