$command = (new Command\Builder\IncrementCounter($riak)) ->buildLocation($user_name, 'user_visit_count', 'visit_counters') ->build(); $response = $command->execute(); $counter = $response->getCounter();
Inheritance: extends Basho\Riak\Command\Builder, implements Basho\Riak\Command\BuilderInterface, use trait Basho\Riak\Command\Builder\LocationTrait
 /**
  * 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();
 }