| Total Complexity | 2 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 31 | final class Response extends AbstractAnnotation implements ResponseInterface, 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 | * @Required |
||
| 46 | * |
||
| 47 | * @var string |
||
| 48 | * |
||
| 49 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-responsedescription |
||
| 50 | */ |
||
| 51 | public $description; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @var array<\Sunrise\Http\Router\Annotation\OpenApi\HeaderInterface> |
||
| 55 | * |
||
| 56 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-responseheaders |
||
| 57 | */ |
||
| 58 | public $headers; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @var array<\Sunrise\Http\Router\Annotation\OpenApi\MediaTypeInterface> |
||
| 62 | * |
||
| 63 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-responsecontent |
||
| 64 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#media-types |
||
| 65 | */ |
||
| 66 | public $content; |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @var array<\Sunrise\Http\Router\Annotation\OpenApi\LinkInterface> |
||
| 70 | * |
||
| 71 | * @link https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-responselinks |
||
| 72 | */ |
||
| 73 | public $links; |
||
| 74 | |||
| 75 | /** |
||
| 76 | * {@inheritDoc} |
||
| 77 | */ |
||
| 78 | public function getComponentName() : string |
||
| 81 | } |
||
| 82 | |||
| 83 | /** |
||
| 84 | * {@inheritDoc} |
||
| 85 | */ |
||
| 86 | public function getReferenceName() : string |
||
| 91 |