1 | <?php |
||
14 | class Path extends AbstractObject |
||
15 | { |
||
16 | |||
17 | private static $methods = array( |
||
18 | 'get', |
||
19 | 'post', |
||
20 | 'put', |
||
21 | 'patch', |
||
22 | 'delete', |
||
23 | ); |
||
24 | |||
25 | /** |
||
26 | * @var Operation[] $operation |
||
27 | */ |
||
28 | private $operations = array(); |
||
29 | |||
30 | /** |
||
31 | * @var Tag|null $tag; |
||
32 | */ |
||
33 | private $tag; |
||
34 | |||
35 | public function __construct(AbstractObject $parent, Tag $Tag = null) |
||
40 | |||
41 | /** |
||
42 | * @param string $command |
||
43 | * @param string $data |
||
44 | * @return \SwaggerGen\Swagger\AbstractObject|boolean |
||
45 | */ |
||
46 | public function handleCommand($command, $data = null) |
||
76 | |||
77 | public function toArray() |
||
89 | |||
90 | public function __toString() |
||
95 | |||
96 | /** |
||
97 | * Check if an operation with the given id is registered to this Path. |
||
98 | * |
||
99 | * @param string $operationId |
||
100 | * @return boolean |
||
101 | */ |
||
102 | public function hasOperationId($operationId) |
||
112 | |||
113 | } |
||
114 |