code: function addSetParameterMethod() {
          $methodGenerator = new MethodGenerator('setParams');
          $parameterGenerator = new ParameterGenerator('params', 'array');
          $methodGenerator->setParameter($parameterGenerator);
          $body = '';
          foreach ($this->operationDefinition->getParameters() as $parameter) {
              $paramName = $parameter->getName();
              $translatedParam = $this->apiGenerator->translateParameter($paramName);
              $setString = <<< END
  if (array_key_exists('%s', \$params)) {
      \$this->parameters['%s'] = \$params['%s'];
  }
  END;
              $body .= sprintf($setString, $translatedParam, $paramName, $translatedParam);
              $body .= PHP_EOL;
          }
  
          $methodGenerator->setBody($body);
          $this->classGenerator->addMethodFromGenerator($methodGenerator);
      }
docs: Add the ability to set any/all params with an array of key value pairs.