1 | <?php declare(strict_types = 1); |
||
16 | abstract class Operation implements Element |
||
17 | { |
||
18 | use VisiteeMixin; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $path; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $method; |
||
29 | |||
30 | /** |
||
31 | * @var Parameter[] |
||
32 | */ |
||
33 | protected $parameters; |
||
34 | |||
35 | /** |
||
36 | * @var Schema |
||
37 | */ |
||
38 | protected $requestSchema; |
||
39 | |||
40 | /** |
||
41 | * @var Response[] |
||
42 | */ |
||
43 | protected $responses; |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getPath(): string |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getId(): string |
||
60 | |||
61 | /** |
||
62 | * @return int[] |
||
63 | */ |
||
64 | public function getStatusCodes(): array |
||
68 | |||
69 | /** |
||
70 | * @param int $code |
||
71 | * |
||
72 | * @return Response |
||
73 | */ |
||
74 | public function getResponse(int $code): Response |
||
89 | |||
90 | /** |
||
91 | * @return Response[] |
||
92 | */ |
||
93 | public function getResponses() |
||
97 | |||
98 | /** |
||
99 | * @return Schema |
||
100 | */ |
||
101 | public function getRequestSchema(): Schema |
||
105 | |||
106 | /** |
||
107 | * @return bool |
||
108 | */ |
||
109 | public function hasParameters(): bool |
||
113 | |||
114 | /** |
||
115 | * @return Parameter[] |
||
116 | */ |
||
117 | public function getParameters(): array |
||
121 | |||
122 | /** |
||
123 | * @param string $name |
||
124 | * |
||
125 | * @return Parameter |
||
126 | */ |
||
127 | public function getParameter(string $name): Parameter |
||
136 | |||
137 | /** |
||
138 | * @return string |
||
139 | */ |
||
140 | public function getMethod(): string |
||
144 | } |
||
145 |