@@ 333-335 (lines=3) @@ | ||
330 | protected function resolveParameter(Reference $parameter) |
|
331 | { |
|
332 | return $parameter->resolve(function ($value) { |
|
333 | if (isset($value->{'in'}) and $value->{'in'} == 'body') { |
|
334 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\BodyParameter'); |
|
335 | } |
|
336 | if (isset($value->{'in'}) and $value->{'in'} == 'header') { |
|
337 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\HeaderParameterSubSchema'); |
|
338 | } |
|
@@ 336-338 (lines=3) @@ | ||
333 | if (isset($value->{'in'}) and $value->{'in'} == 'body') { |
|
334 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\BodyParameter'); |
|
335 | } |
|
336 | if (isset($value->{'in'}) and $value->{'in'} == 'header') { |
|
337 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\HeaderParameterSubSchema'); |
|
338 | } |
|
339 | if (isset($value->{'in'}) and $value->{'in'} == 'formData') { |
|
340 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\FormDataParameterSubSchema'); |
|
341 | } |
|
@@ 339-341 (lines=3) @@ | ||
336 | if (isset($value->{'in'}) and $value->{'in'} == 'header') { |
|
337 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\HeaderParameterSubSchema'); |
|
338 | } |
|
339 | if (isset($value->{'in'}) and $value->{'in'} == 'formData') { |
|
340 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\FormDataParameterSubSchema'); |
|
341 | } |
|
342 | if (isset($value->{'in'}) and $value->{'in'} == 'query') { |
|
343 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\QueryParameterSubSchema'); |
|
344 | } |
|
@@ 342-344 (lines=3) @@ | ||
339 | if (isset($value->{'in'}) and $value->{'in'} == 'formData') { |
|
340 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\FormDataParameterSubSchema'); |
|
341 | } |
|
342 | if (isset($value->{'in'}) and $value->{'in'} == 'query') { |
|
343 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\QueryParameterSubSchema'); |
|
344 | } |
|
345 | if (isset($value->{'in'}) and $value->{'in'} == 'path') { |
|
346 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\PathParameterSubSchema'); |
|
347 | } |
|
@@ 345-347 (lines=3) @@ | ||
342 | if (isset($value->{'in'}) and $value->{'in'} == 'query') { |
|
343 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\QueryParameterSubSchema'); |
|
344 | } |
|
345 | if (isset($value->{'in'}) and $value->{'in'} == 'path') { |
|
346 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\PathParameterSubSchema'); |
|
347 | } |
|
348 | ||
349 | return $value; |
|
350 | }); |