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

build() public method

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

Usage Example

 /**
  * Tests validate properly verifies the Bucket is not there
  *
  * @expectedException \Basho\Riak\Command\Builder\Exception
  */
 public function testValidateBucket()
 {
     $builder = new Command\Builder\IncrementCounter(static::$riak);
     $builder->withIncrement(1);
     $builder->build();
 }