Class StoreObject
Used to increment counter objects in Riak by the provided positive / negative integer
$command = (new Command\Builder\StoreObject($riak)) ->buildObject('{"firstName":"John","lastName":"Doe","email":"johndoe@gmail.com"}') ->buildBucket('users') ->build(); $response = $command->execute($command); $user_location = $response->getLocation();
- Basho\Riak\Command\Builder
- Basho\Riak\Command\Builder\StoreObject implements Basho\Riak\Command\BuilderInterface uses Basho\Riak\Command\Builder\ObjectTrait, Basho\Riak\Command\Builder\LocationTrait
Namespace: Basho\Riak\Command\Builder
Author: Christopher Mancini
Located at Riak/Command/Builder/StoreObject.php
Author: Christopher Mancini
Located at Riak/Command/Builder/StoreObject.php
Methods summary
public
|
#
withDecodeAsAssociative( )
Tells the client to decode the data as an associative array instead of a PHP stdClass object. Only works if the fetched object type is JSON. |
public
boolean
|
|
public
|
|
public
boolean
|
Methods inherited from Basho\Riak\Command\Builder
__construct()
,
getConnection()
,
getParameters()
,
getVerbose()
,
required()
,
withParameter()
,
withParameters()
,
withVerboseMode()
Methods used from Basho\Riak\Command\Builder\ObjectTrait
Methods used from Basho\Riak\Command\Builder\LocationTrait
Constants summary
Constants inherited from Basho\Riak\Command\BuilderInterface
Properties summary
protected
boolean
|
$decodeAsAssociative
|
#
false
|