Basho\Riak\Command\Builder\FetchObject::build PHP Method

build() public method

public build ( ) : Basho\Riak\Command\Object\Fetch;
return Basho\Riak\Command\Object\Fetch;
    public function build()
    {
        $this->validate();
        return new Command\Object\Fetch($this);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Tests validate properly verifies the Object is not there
  *
  * @expectedException \Basho\Riak\Command\Builder\Exception
  */
 public function testValidateLocation()
 {
     $builder = new Command\Builder\FetchObject(static::$riak);
     $builder->buildBucket('some_bucket');
     $builder->build();
 }