1 | <?php |
||
28 | class ApiDescription |
||
29 | { |
||
30 | /** |
||
31 | * The request payload description. |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | private $request = []; |
||
36 | |||
37 | /** |
||
38 | * The response description. |
||
39 | * |
||
40 | * @var array |
||
41 | */ |
||
42 | private $response = []; |
||
43 | |||
44 | /** |
||
45 | * Link to another route and inherit the doc from it. |
||
46 | * |
||
47 | * @var string |
||
48 | */ |
||
49 | private $link; |
||
50 | |||
51 | /** |
||
52 | * Create a new instance. |
||
53 | * |
||
54 | * @param array $options The values from the annotation. |
||
55 | */ |
||
56 | public function __construct($options) |
||
73 | |||
74 | /** |
||
75 | * Retrieve the request. |
||
76 | * |
||
77 | * @return array |
||
78 | */ |
||
79 | public function getRequest() |
||
83 | |||
84 | /** |
||
85 | * Retrieve the response. |
||
86 | * |
||
87 | * @return array |
||
88 | */ |
||
89 | public function getResponse() |
||
93 | |||
94 | /** |
||
95 | * Retrieve the link. |
||
96 | * |
||
97 | * @return string |
||
98 | */ |
||
99 | public function getLink() |
||
103 | } |
||
104 |