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