PHP Trait Basho\Riak\Command\Builder\ObjectTrait

Datei anzeigen Open project: basho/riak-php-client

Protected Properties

Property Type Description
$object Basho\Riak\Object | null

Public Methods

Method Description
buildJsonObject ( mixed $data ) Mint a new Object instance with a json encoded string
buildObject ( string $data = NULL, array $headers = NULL ) Mint a new Object instance with supplied params and attach it to the Command
getObject ( ) : Object | null
withObject ( Object $object ) Attach an already instantiated Object to the Command

Method Details

buildJsonObject() public method

Mint a new Object instance with a json encoded string
public buildJsonObject ( mixed $data )
$data mixed

buildObject() public method

Mint a new Object instance with supplied params and attach it to the Command
public buildObject ( string $data = NULL, array $headers = NULL )
$data string
$headers array

getObject() public method

public getObject ( ) : Object | null
return Object | null

withObject() public method

Attach an already instantiated Object to the Command
public withObject ( Object $object )
$object Basho\Riak\Object

Property Details

$object protected_oe property

protected Object,Basho\Riak|null $object
return Basho\Riak\Object | null