| 1 | <?php |
||
| 14 | class Response extends AbstractModel implements Arrayable |
||
| 15 | { |
||
| 16 | use RefPart; |
||
| 17 | use DescriptionPart; |
||
| 18 | use SchemaPart; |
||
| 19 | use ExtensionPart; |
||
| 20 | |||
| 21 | /** @var string */ |
||
| 22 | private $code; |
||
| 23 | |||
| 24 | /** @var Map */ |
||
| 25 | private $examples; |
||
| 26 | |||
| 27 | /** @var Headers */ |
||
| 28 | private $headers; |
||
| 29 | |||
| 30 | 7 | public function __construct($code, $contents = []) |
|
| 35 | |||
| 36 | 7 | private function parse($contents) |
|
| 49 | |||
| 50 | 6 | public function toArray() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Returns the responses code. |
||
| 57 | * |
||
| 58 | * @return string |
||
| 59 | */ |
||
| 60 | 1 | public function getCode() |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return Map |
||
| 67 | */ |
||
| 68 | 6 | public function getExamples() |
|
| 72 | |||
| 73 | /** |
||
| 74 | * Returns headers for this response. |
||
| 75 | * |
||
| 76 | * @return Headers |
||
| 77 | */ |
||
| 78 | 1 | public function getHeaders() |
|
| 82 | } |
||
| 83 |