| Total Complexity | 2 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 31 | final class RequestBody extends AbstractAnnotation implements RequestBodyInterface, ComponentObjectInterface |
||
| 32 | { |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritDoc} |
||
| 36 | */ |
||
| 37 | protected const IGNORE_FIELDS = ['refName']; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var string |
||
| 41 | */ |
||
| 42 | public $refName; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var string |
||
| 46 | * |
||
| 47 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-requestbodydescription |
||
| 48 | */ |
||
| 49 | public $description; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @Required |
||
| 53 | * |
||
| 54 | * @var array<\Sunrise\Http\Router\Annotation\OpenApi\MediaTypeInterface> |
||
| 55 | * |
||
| 56 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-requestbodycontent |
||
| 57 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#media-types |
||
| 58 | */ |
||
| 59 | public $content; |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @var bool |
||
| 63 | * |
||
| 64 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-requestbodyrequired |
||
| 65 | */ |
||
| 66 | public $required; |
||
| 67 | |||
| 68 | /** |
||
| 69 | * {@inheritDoc} |
||
| 70 | */ |
||
| 71 | public function getComponentName() : string |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * {@inheritDoc} |
||
| 78 | */ |
||
| 79 | public function getReferenceName() : string |
||
| 84 |