code: private function generateParameterSetBlock($indent, \ArtaxServiceBuilder\Parameter $operationParameter) {
  
          switch ($operationParameter->getLocation()) {
              case 'absoluteURL': {
                  return $indent.'$url = $value;'.PHP_EOL;
                  break;
              }
  
              case 'postField': {
                  return sprintf(
                      $indent.'$formBody->addField(\'%s\', $value);'.PHP_EOL,
                      $operationParameter->getSentAs()
                  );
              }
  
              case 'postFile': {
                  return sprintf(
                      $indent.'$formBody->addFileField(\'%s\', $value);'.PHP_EOL,
                      $operationParameter->getSentAs()
                  );
                  break;
              }
  
              case 'json': {
                  return sprintf(
                      $indent.'$jsonParams[\'%s\'] = $value;'.PHP_EOL,
                      $operationParameter->getSentAs()
                  );
              }
  
              case ('header'): {
                  return sprintf(
                      $indent.'$request->setHeader(\'%s\', $value);'.PHP_EOL,
                      $operationParameter->getSentAs(),
                      $operationParameter->getName()
                  );
              }
  
              default:
              case 'query': {
                  return sprintf(
                      $indent.'$queryParameters[\'%s\'] = $value;'.PHP_EOL,
                      $operationParameter->getSentAs(),
                      $operationParameter->getName()
                  );
              }
          }
      }
docs: Generate the code for setting a parameter in the request
  @param $indent
  @param Parameter $operationParameter
  @return string