1 | <?php declare(strict_types = 1); |
||
16 | class Specification |
||
17 | { |
||
18 | /** |
||
19 | * @var object |
||
20 | */ |
||
21 | private $definition; |
||
22 | |||
23 | /** |
||
24 | * @var Operation[] |
||
25 | */ |
||
26 | private $operations; |
||
27 | |||
28 | /** |
||
29 | * @param \stdClass $definition |
||
30 | */ |
||
31 | public function __construct(\stdClass $definition) |
||
35 | |||
36 | /** |
||
37 | * @return \stdClass |
||
38 | */ |
||
39 | public function getDefinition(): \stdClass |
||
43 | |||
44 | /** |
||
45 | * @return \stdClass |
||
46 | */ |
||
47 | public function getPaths(): \stdClass |
||
51 | |||
52 | /** |
||
53 | * @param string $path |
||
54 | * @param string $method |
||
55 | * |
||
56 | * @return Operation |
||
57 | */ |
||
58 | public function getOperation(string $path, string $method): Operation |
||
68 | |||
69 | /** |
||
70 | * @deprecated |
||
71 | * |
||
72 | * @param string $path |
||
73 | * @param string $method |
||
74 | * |
||
75 | * @return \stdClass |
||
76 | */ |
||
77 | public function getOperationDefinition(string $path, string $method): \stdClass |
||
81 | } |
||
82 |