code: public function addBucketInput(Riak\Bucket $bucket)
      {
          // default bucket type cannot be passed to the MR api due to a bug
          if ($bucket->getType() == 'default') {
              $input = $bucket->getName();
          } else {
              $input = [$bucket->getType(), $bucket->getName()];
          }
  
          $this->inputs[] = $input;
  
          return $this;
      }
docs: addBucketInput
  
  @param Riak\Bucket $bucket
  
  @return $this