Basho\Riak\Command\Builder\ObjectTrait::buildObject PHP Method

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
    public function buildObject($data = NULL, $headers = NULL)
    {
        $this->object = new RObject($data, $headers);
        return $this;
    }