1 | <?php |
||
9 | class Path extends AbstractModel implements Arrayable { |
||
10 | |||
11 | use ExtensionPart; |
||
12 | |||
13 | private $operations; |
||
14 | |||
15 | /** @var string */ |
||
16 | private $path; |
||
17 | |||
18 | 8 | public function __construct($path, $contents = []) { |
|
23 | |||
24 | 8 | private function parse($contents) { |
|
36 | |||
37 | 7 | public function toArray() { |
|
43 | |||
44 | /** |
||
45 | * Returns this path |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | 1 | public function getPath() { |
|
52 | |||
53 | /** |
||
54 | * Gets the operation for the given method, creates one if none exists |
||
55 | * |
||
56 | * @param string $method |
||
57 | * @return Operation |
||
58 | */ |
||
59 | 2 | public function getOperation($method) { |
|
66 | |||
67 | /** |
||
68 | * |
||
69 | * @param string $method |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function hasOperation($method) { |
||
75 | |||
76 | /** |
||
77 | * Removes an operation for the given method |
||
78 | * |
||
79 | * @param string $method |
||
80 | */ |
||
81 | public function removeOperation($method) { |
||
84 | |||
85 | } |
||
86 |