| 1 | <?php |
||
| 16 | class SwaggerDocument |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $uri; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var object |
||
| 25 | */ |
||
| 26 | private $definition; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var OperationObject[] |
||
| 30 | */ |
||
| 31 | private $operations; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $pathFileName |
||
| 35 | * @param object $definition |
||
| 36 | */ |
||
| 37 | public function __construct($pathFileName, $definition) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return object |
||
| 45 | */ |
||
| 46 | public function getDefinition() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return object |
||
| 53 | */ |
||
| 54 | public function getPathDefinitions() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param string $path |
||
| 61 | * @param string $method |
||
| 62 | * |
||
| 63 | * @return OperationObject |
||
| 64 | */ |
||
| 65 | public function getOperationObject($path, $method) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @deprecated |
||
| 78 | * |
||
| 79 | * @param string $path |
||
| 80 | * @param string $method |
||
| 81 | * |
||
| 82 | * @return object |
||
| 83 | */ |
||
| 84 | public function getOperationDefinition($path, $method) |
||
| 88 | } |
||
| 89 |