PHP Класс 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();
Наследование: extends Basho\Riak\Command\Builder, implements Basho\Riak\Command\BuilderInterface, use trait ObjectTrait, use trait Basho\Riak\Command\Builder\LocationTrait
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$decodeAsAssociative boolean

Открытые методы

Метод Описание
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.

Описание методов

build() публичный Метод

public build ( ) : Basho\Riak\Command\Object\Store
Результат Basho\Riak\Command\Object\Store

getDecodeAsAssociative() публичный Метод

Fetch the setting for decodeAsAssociative.
public getDecodeAsAssociative ( ) : boolean
Результат boolean

validate() публичный Метод

public validate ( )

withDecodeAsAssociative() публичный Метод

Only works if the fetched object type is JSON.

Описание свойств

$decodeAsAssociative защищенное свойство

protected bool $decodeAsAssociative
Результат boolean