src/Generator/Parameter/NonBodyParameterGenerator.php
public function generateMethodParameter($parameter, Context $context, $reference)
    {
        $name = Inflector::camelize($parameter->getName());
        $methodParameter = new Node\Param($name);

        if (!$parameter->getRequired() || $parameter->getDefault() !== null) {
            $methodParameter->default = $this->getDefaultAsExpr($parameter);
        }

        return $methodParameter;
    }
public function generateMethodParameter($parameter, Context $context, $reference)
    {
        $name = Inflector::camelize($parameter->getName());
        $methodParameter = new Node\Param($name);

        if (!$parameter->getRequired() || $parameter->getDefault() !== null) {
            $methodParameter->default = $this->getDefaultAsExpr($parameter);
        }

        return $methodParameter;
    }
{@inheritdoc}

@param $parameter PathParameterSubSchema|HeaderParameterSubSchema|FormDataParameterSubSchema|QueryParameterSubSchema