1 | <?php |
||
14 | class OperationObject |
||
15 | { |
||
16 | /** |
||
17 | * @var SwaggerDocument |
||
18 | */ |
||
19 | private $document; |
||
20 | |||
21 | /** |
||
22 | * @var object |
||
23 | */ |
||
24 | private $definition; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $path; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $method; |
||
35 | |||
36 | /** |
||
37 | * @param SwaggerDocument $document |
||
38 | * @param string $path |
||
39 | * @param string $method |
||
40 | */ |
||
41 | public function __construct(SwaggerDocument $document, $path, $method) |
||
59 | |||
60 | /** |
||
61 | * @param object $definition |
||
62 | * @param string $path |
||
63 | * @param string $method |
||
64 | * |
||
65 | * @return static |
||
66 | */ |
||
67 | public static function createFromOperationDefinition($definition, $path = '/', $method = 'GET') |
||
81 | |||
82 | /** |
||
83 | * @return object |
||
84 | */ |
||
85 | public function getRequestSchema() |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getPath() |
||
97 | |||
98 | /** |
||
99 | * @return string |
||
100 | */ |
||
101 | public function getMethod() |
||
105 | |||
106 | /** |
||
107 | * @return object |
||
108 | */ |
||
109 | public function getDefinition() |
||
113 | |||
114 | /** |
||
115 | * @return object |
||
116 | */ |
||
117 | private function assembleRequestSchema() |
||
144 | } |
||
145 |