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

build() public method

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

Usage Example

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