@@ 110-119 (lines=10) @@ | ||
107 | $methodParameters = []; |
|
108 | ||
109 | if ($operation->getOperation()->getParameters()) { |
|
110 | foreach ($operation->getOperation()->getParameters() as $key => $parameter) { |
|
111 | if ($parameter instanceof Reference) { |
|
112 | $parameter = $this->resolveParameter($parameter); |
|
113 | } |
|
114 | ||
115 | if ($parameter instanceof PathParameterSubSchema) { |
|
116 | $methodParameters[] = $this->pathParameterGenerator->generateMethodParameter($parameter, $context, $operation->getReference() . '/parameters/' . $key); |
|
117 | $documentationParams[] = sprintf(' * @param %s', $this->pathParameterGenerator->generateDocParameter($parameter, $context, $operation->getReference() . '/parameters/' . $key)); |
|
118 | } |
|
119 | } |
|
120 | ||
121 | foreach ($operation->getOperation()->getParameters() as $key => $parameter) { |
|
122 | if ($parameter instanceof Reference) { |
|
@@ 121-130 (lines=10) @@ | ||
118 | } |
|
119 | } |
|
120 | ||
121 | foreach ($operation->getOperation()->getParameters() as $key => $parameter) { |
|
122 | if ($parameter instanceof Reference) { |
|
123 | $parameter = $this->resolveParameter($parameter); |
|
124 | } |
|
125 | ||
126 | if ($parameter instanceof BodyParameter) { |
|
127 | $methodParameters[] = $this->bodyParameterGenerator->generateMethodParameter($parameter, $context, $operation->getReference() . '/parameters/' . $key); |
|
128 | $documentationParams[] = sprintf(' * @param %s', $this->bodyParameterGenerator->generateDocParameter($parameter, $context, $operation->getReference() . '/parameters/' . $key)); |
|
129 | } |
|
130 | } |
|
131 | } |
|
132 | ||
133 | if (!empty($queryParamDocumentation)) { |