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

build() public method

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

Usage Example

コード例 #1
0
 /**
  * Tests validate properly verifies the Location is not there
  *
  * @dataProvider getLocalNodeConnection
  *
  * @param $riak \Basho\Riak
  *
  * @expectedException \Basho\Riak\Command\Builder\Exception
  */
 public function testValidateLocation($riak)
 {
     $builder = new Command\Builder\FetchCounter($riak);
     $builder->buildBucket('some_bucket');
     $builder->build();
 }
FetchCounter