Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class Operation |
||
17 | { |
||
18 | private $tags; |
||
19 | private $summary; |
||
20 | private $description; |
||
21 | private $operationId; |
||
22 | /** |
||
23 | * @Parameter | Reference |
||
24 | */ |
||
25 | private $parameters; |
||
26 | |||
27 | private $requestBody; |
||
28 | private $responses; |
||
29 | private $callbacks; |
||
30 | private $deprecated; |
||
31 | private $security; |
||
32 | private $servers; |
||
33 | private $externalDocs; |
||
34 | |||
35 | public function __construct(string $operationId = null, array $tags = [], array $responses = [], string $summary = '', string $description = '', $externalDocs = [], array $parameters = [], RequestBody $requestBody = null, $callbacks = [], bool $deprecated = false, $security = [], array $servers = []) |
||
49 | } |
||
50 | |||
51 | public function addResponse(Response $response, $status = 'default') |
||
58 |