/** * {@inheritdoc} */ public function getResponsePayloadBodyContentTypes() { $contentTypes = []; foreach ($this->method->getResponses() as $response) { foreach ($response->getBodies() as $body) { $contentTypes[] = $body->getMediaType(); } } return $contentTypes; }