Total Complexity | 3 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class KVGetting extends AbstractWatcher |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $method = 'GET'; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $uri = '/kv/:path'; |
||
26 | |||
27 | /** |
||
28 | * custom path |
||
29 | * @var string |
||
30 | */ |
||
31 | private $path = null; |
||
32 | |||
33 | /** |
||
34 | * @param string $path |
||
35 | * @return static |
||
36 | */ |
||
37 | public function path(string $path) : self |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return Promised|KVs |
||
47 | */ |
||
48 | public function result() |
||
65 |