PHP Class Basho\Riak\Command\Builder\FetchObject

$command = (new Command\Builder\FetchObject($riak)) ->buildLocation($user_id, 'users', 'default') ->build(); $response = $command->execute(); $user = $response->getObject();
Inheritance: extends Basho\Riak\Command\Builder, implements Basho\Riak\Command\BuilderInterface, use trait ObjectTrait, use trait Basho\Riak\Command\Builder\LocationTrait
Datei anzeigen Open project: basho/riak-php-client Class Usage Examples

Protected Properties

Property Type Description
$decodeAsAssociative boolean

Public Methods

Method Description
__construct ( Riak $riak )
build ( ) : Basho\Riak\Command\Object\Fetch;
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

__construct() public method

public __construct ( Riak $riak )
$riak Basho\Riak

build() public method

public build ( ) : Basho\Riak\Command\Object\Fetch;
return Basho\Riak\Command\Object\Fetch;

getDecodeAsAssociative() public method

Fetch the setting for decodeAsAssociative.
public getDecodeAsAssociative ( ) : boolean
return boolean

validate() public method

public validate ( )

withDecodeAsAssociative() public method

Only works if the fetched object type is JSON.

Property Details

$decodeAsAssociative protected_oe property

protected bool $decodeAsAssociative
return boolean