PHP Class Basho\Riak\Command\Builder\StoreObject

$command = (new Command\Builder\StoreObject($riak)) ->buildObject('{"firstName":"John","lastName":"Doe","email":"[email protected]"}') ->buildBucket('users') ->build(); $response = $command->execute(); $user_location = $response->getLocation();
Inheritance: extends Basho\Riak\Command\Builder, implements Basho\Riak\Command\BuilderInterface, use trait ObjectTrait, use trait Basho\Riak\Command\Builder\LocationTrait
Afficher le fichier Open project: basho/riak-php-client Class Usage Examples

Protected Properties

Свойство Type Description
$decodeAsAssociative boolean

Méthodes publiques

Méthode 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.

Method Details

build() public méthode

public build ( ) : Basho\Riak\Command\Object\Store
Résultat Basho\Riak\Command\Object\Store

getDecodeAsAssociative() public méthode

Fetch the setting for decodeAsAssociative.
public getDecodeAsAssociative ( ) : boolean
Résultat boolean

validate() public méthode

public validate ( )

withDecodeAsAssociative() public méthode

Only works if the fetched object type is JSON.

Property Details

$decodeAsAssociative protected_oe property

protected bool $decodeAsAssociative
Résultat boolean