| Total Complexity | 1 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class RequestBody extends AbstractObject implements ExtensibleInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * REQUIRED. The content of the request body. The key is a media type or media type range and the value describes |
||
| 14 | * it. For requests that match multiple keys, only the most specific key is applicable. e.g. text/plain overrides |
||
| 15 | * text/* |
||
| 16 | * |
||
| 17 | * @see https://tools.ietf.org/html/rfc7231#appendix-D |
||
| 18 | * @var MediaType[] array<string, MediaType> |
||
| 19 | */ |
||
| 20 | public $content; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * A brief description of the request body. This could contain examples of use. CommonMark syntax MAY be used for |
||
| 24 | * rich text representation. |
||
| 25 | * |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | public $description; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Determines if the request body is required in the request. Defaults to false if not specified. |
||
| 32 | * |
||
| 33 | * @var bool |
||
| 34 | */ |
||
| 35 | public $required; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param MediaType[] $content |
||
| 39 | * @param string|null $description |
||
| 40 | * @param bool|null $required |
||
| 41 | * @param array $additionalProperties |
||
| 42 | */ |
||
| 43 | 6 | public function __construct( |
|
| 55 |